To check if it's prime is also very simple, but kinda dumb and slow.
This is a quote from hints. I understand slow, but why checking primality would be dumb ?
My best solution for primality is
all(n%x for x in range(2,n))
Is there another way to solve it ? If there is, I think I miss mathematical skills here...
Created at: 2015/05/20 14:19; Updated at: 2015/05/20 17:56