USE TURBO MODE. IT'S FASTER. (hold shift and click flag) Wow, there are 1229 prime numbers and 8770 composite numbers under 10000. Whew. Minimum: 2 or it won't work Maximum: 10000 or it will take too long
My dad asked me to do this. How it works: According to the Fundamental Theorem of Arithmetic, every composite number has a prime number as one of its factors. So, I used the prime numbers in the prime numbers list to see if the number is divisible by any of the prime numbers. If it isn't, then it is a prime number.