This Question has been **Answered**

Featured Replies

- 1
There are a great many prime number generators in the code snippet sections :) [url]http://www.daniweb.com/code/forum114.html[/url] Otherwise, i would look at techniques to find primes. Then come back with some code if you have any issues. Here is a great idea [url]http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes[/url] Read More

- 1
As a hint, here is a slow but simple prime number algorithm ... [code=python]# slow and simple algorithm to find prime numbers # prime numbers are only divisible by unity and themselves # (1 is not considered a prime number) limit = 20 # 2 is the first prime number … Read More

This question has already been answered. Start a new discussion instead.

Recommended Articles