How to generate a list of prime numbers
Enter how many primes you want and the list appears immediately, starting from 2. Each candidate is tested by dividing it by the primes already found, stopping at the square root, which is the classic and entirely adequate approach at this scale.
The important thing to get right is the question. This tool returns the first N primes. If what you need is every prime below some limit, ask for enough of them to pass that limit and trim the list yourself.
- Enter how many primes you want, from 1 to 1,000.
- Read the comma-separated list, which begins at 2.
- If you actually wanted primes below a limit, generate more than enough and cut the list at your limit.
- Use Copy result to put the whole list on the clipboard.
- Remember the ceiling: 1,000 primes takes you to 7,919.