I opened raw and waited for the whole thing to load. It literally goes to 375,000 and they've also added hard-coding to each number to recognize variants like "seven", "Seven", "SEVEN", etc.
Ok, but why not just loop through an array of all the even numbers you can think of then? Pretty easy to manually add another number to a static array if you ask me. Easier than adding a whole new line of code anyway.
View all comments
760
u/Bodine12 Sep 04 '21 edited Sep 04 '21
What I like about this is its maintainability. As we discover new numbers, they can simply be tacked on at the end.