there is a simple method to find a list of prime numbers. eratosthenes created it. it has the name sieve of eratosthenes. it catches numbers that are not prime (like a sieve), and lets the prime numbers pass through.