Comment

Comment by JacobSeated

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.

parent JacobSeated 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton