This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<p>Problem 12</p> | |
<script> | |
function is_prime(n) { | |
/* | |
* Try to divide n by all the numbers from 2 to the square root | |
* of n. If any divide exactly then we know that n is not prime | |
* and return false, otherwise if after testing all the mentioned |