Oct-27-2017, 06:58 PM
Your algorithm is wrong, because
print(isPrime(5))
results in None instead of true.
print(isPrime(5))
results in None instead of true.
Sophie Germain Primes
|
|
Messages In This Thread |
Sophie Germain Primes - by PythonLamer - Oct-27-2017, 06:26 PM
RE: Sophie Germain Primes - by heiner55 - Oct-27-2017, 06:58 PM
RE: Sophie Germain Primes - by PythonLamer - Oct-27-2017, 07:08 PM
RE: Sophie Germain Primes - by heiner55 - Oct-27-2017, 07:20 PM
RE: Sophie Germain Primes - by PythonLamer - Oct-27-2017, 09:01 PM
RE: Sophie Germain Primes - by heiner55 - Oct-28-2017, 03:08 AM
RE: Sophie Germain Primes - by PythonLamer - Oct-28-2017, 04:44 AM
RE: Sophie Germain Primes - by heiner55 - Oct-28-2017, 05:27 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Need help to identify Mersenne Primes, I do need a search pattern. | Pleiades | 0 | 1,959 |
Dec-03-2019, 11:05 PM Last Post: Pleiades |
|
Convert Vba Primes to Python Primes | jackhj | 1 | 2,448 |
Apr-18-2018, 12:19 AM Last Post: Larz60+ |