Prime numbers

Calculates prime numbers, easy and simple, but slow.

Will also measure the execution time of JavaScript.

 
Start:
Stop:
Input range 3 to 2147483647. The primes
1 and 2 are not calculated.
 
Number of primes: -     
Execution time: -     
 
The execution time may be used as a
benchmark of your browser and system.
Primes:

The measured execution time does not include the browser's update of the user interface.

This page was rewritten on April 28, 2013, including execution time measurement.

Copyright © 1996-2017 Scandinavian Digital Systems AB
Developed by Anders Danielsson