Hacker News new | past | comments | ask | show | jobs | submit login

FWIW, I prefer the "grit" solutions. No modulo, no faking/implementing modulo. Why?

Because the original child's game isn't about "If a number is divisible by X," it's about "Every Xth number." And directly implementing "every Xth" can be interesting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: