Re:Primes and Primality Testing
by animeshk on Saturday November 18, 2017 @11:22AM
(#15729568)
When a test is contrapositive, it's actually testing for composites. So technically, it should output True for composite but then, the name isPrime doesn't do justice. So I changed the outputs to strings 'Prime' and 'Composite'.
[ Parent
| on HN ]
There are no comments on this comment yet.