This script will detect if a given range of numbers is prime by a Eratosthenes sieve method. This will generate a list of all primes from 1 to n. There are multiple display options below. The highest value to test has been capped at 50000 to conserve server resources with my hosting provider.

n:
Display non primes? - for a full listing of 1..n
Display as binary square? - primarily used for exploring patterns



1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97