WebMD Health Interview Question

Write a function to tell if the input was a prime number

Interview Answer

Anonymous

Jul 27, 2017

I opted out of this question but here is the answer: function isPrime(num){ for(var i=2; i