Oct-27-2017, 09:01 PM
(Oct-27-2017, 07:20 PM)heiner55 Wrote: Sorry,
Your algorithm is still wrong, because
print(isPrime(5))
results in None instead of true.
Maybe the last "return true" is wrong indented.
Yep... it needs to be two spaces back. At any rate... this process for getting sophie germain prime numbers seems to be extremely slow. I'm not quite sure how to speed it up.