JavaScript to find Prime number or not!

Enter a number: