Created
November 11, 2011 20:13
-
-
Save jakedobkin/1359093 to your computer and use it in GitHub Desktop.
Euler Problem 5
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
<html> | |
<body> | |
<script type="text/javascript"> | |
isdiv = false; | |
i=1; | |
while (isdiv == false) | |
{ | |
if (i%1 == 0 && i%2 == 0 && i%3 == 0 && i%4 == 0 && i%5 ==0 && i%6 == 0 && i%7 == 0 && i%8 == 0 && i%9 == 0 && i%10 == 0 && i%11 == 0 && i%12 == 0 && i%13 == 0 && i%14 == 0 && i%15 == 0 && i%16 == 0 && i%17 == 0 && i%18 == 0 && i%19 == 0 && i%20 == 0) | |
{ | |
isdiv = true; | |
document.write(i + " is divisible by one through twenty"); | |
} | |
i++; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment