Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ilyanep
· 10y ago · 0 comments
I got to 31 before I got tripped up on the exact same number. It
looks
prime!
Comments
[–]
dylandrop
10y ago
Trick: add up digits, if they are divisible by 3 so is the number. In this case 117 yields 1+1+7 = 9, and sure enough so is 117. (117 / 3 == 39).
https://en.wikipedia.org/wiki/Divisibility_rule#Divisibility...
[–]
ilyanep
OP
10y ago
Yeah, I had been doing that with other numbers, but somehow didn't trigger for that one. Must have been the timing pressure.