Hacker News new | ask | show | jobs
by JacobSeated 902 days ago
Interesting. How would this compare to making a while loop or recursive function, I wonder?

And, what about switch statements? In theory it is said they should be faster, but I am not sure that's necessarily the case.

Another option would be to keep a database with the numbers indexed, and then compare with performing a database query.