Subash Chandran posted: "# Time Efficient Primality Check in Python def primeCheck(n): # 0, 1, even numbers greater than 2 are NOT PRIME if n==1 or n==0 or (n % 2 == 0 and n > 2): return "Not prime" else: # Not prime if divisable by anoth"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.