Code doodling: isPrime
9 min readDec 18, 2018
--
Sometimes I like to doodle and I often like to doodle with code.
Coding an isPrime function is a popular software engineering interview question. I’ve been on many hiring committees over the years and I’ve asked for code to determine if a number was prime many times. In a whiteboard interview, it’s common to ask for some code and then when the interviewee supplies something that works, ask them to make it more efficient…