Hacker News new | ask | show | jobs
by schoen 3792 days ago
For anyone following along at home, you missed a D at the very end (0x6D). A number whose hexadecimal representation ended in 6 couldn't be prime because it is even.

(final digit is divisible by d ←→ number is divisible by d works for any d that is a divisor of the base the number is written in)

1 comments

Thanks for the edit. Of course an even number isn't prime ;)
There is one even prime. ;-)
And one even primer.
"all primes are odd, and two is the oddest of all."
... that ruined it for all the other even numbers :)