V
V
Vitaly Pukhov2015-03-17 07:58:27
Mathematics
Vitaly Pukhov, 2015-03-17 07:58:27

Where to get a million prime numbers?

It will take a very long time to count, you just need a large number of first prime numbers, the more the better, so far I have found only 200000, this is not enough to solve the problem. Where can you find this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mrrl, 2015-03-17
@Neuroware

A million numbers are searched using the sieve of Eratosthenes in less than 0.1 seconds and written in 10 minutes. This is faster than finding them online and then reading from a file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question