Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
silisili
3 months ago
|
parent
|
context
|
favorite
| on:
A leap year check in three instructions
Not trying to be a jerk, but why is that interesting? Am I missing something more than all odd numbers end in 1, and primes by their nature cannot be even(except 2, as you mentioned).
lkirkwood
3 months ago
[–]
Just nitpick but all odd numbers end in an odd number, not 1, and all even numbers end in an even number i.e. a multiple of 2.
silisili
3 months ago
|
parent
|
next
[–]
Sure, but OP was talking about binary representation.
dmichulke
3 months ago
|
root
|
parent
|
next
[–]
GP's statement is true for all number systems with an even base (so also for binary and decimal)
Etheryte
3 months ago
|
parent
|
prev
[–]
All odd numbers end in 1
in binary
.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: