Calculate Max Prime in Raw JavaScript

Calculate max prime below "N" using the method of Sieve of Eratosthenes.
Press "Run", then the table shows the max prime below "N" and the calculation time.
Note if "N" is less than 2, the program returns 0 as max prime.
    
# N max prime time [ms]
1
2
3
4
5
6
7
8
9
10