This one was fun- a one-liner that uses unary math (basically tally marks if you think about it) to check if a number is prime or not. Found it years ago on the net and kept it around because of…
Jeff Clayton IT Director / Senior Software Engineer / Film & Photography
CSS Hacks and Tech, Video and Programming, Photography
This one was fun- a one-liner that uses unary math (basically tally marks if you think about it) to check if a number is prime or not. Found it years ago on the net and kept it around because of…