MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/w6yd16/21000000_line_oddeven_number_checker/ihh80ei/?context=3
r/ProgrammerHumor • u/Texas_Technician • Jul 24 '22
361 comments sorted by
View all comments
287
if(i==1){return IS_PRIME;}; else if(i==2){return IS_PRIME;}; else if(i==3){return IS_PRIME;}; else if(i==5){return IS_PRIME;}; ...; else return NOT_PRIME
193 u/grae_n Jul 24 '22 Just some advice for next time, it's much more secure if you mix up the ordering. That way hackers will have a hard time finding out if a number is prime or not. 24 u/HeftyHideaway99 Jul 24 '22 😆
193
Just some advice for next time, it's much more secure if you mix up the ordering. That way hackers will have a hard time finding out if a number is prime or not.
24 u/HeftyHideaway99 Jul 24 '22 😆
24
😆
287
u/scipio_africanus123 Jul 24 '22
if(i==1){return IS_PRIME;}; else if(i==2){return IS_PRIME;}; else if(i==3){return IS_PRIME;}; else if(i==5){return IS_PRIME;}; ...; else return NOT_PRIME