Created
February 1, 2012 01:00
-
-
Save yngwie74/1714293 to your computer and use it in GitHub Desktop.
"Runner page" para las pruebas del problema 7 del Projecto Euler
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<!-- this file: https://gist.github.com/1714293 --> | |
<title>Project Euler - Problem 7</title> | |
<link rel="shortcut icon" type="image/png" href="jasmine/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="jasmine/jasmine.css"> | |
<script type="text/javascript" src="jasmine/jasmine.js"></script> | |
<script type="text/javascript" src="jasmine/jasmine-html.js"></script> | |
<!-- include spec files here... --> | |
<!-- https://gist.github.com/1714297 --> | |
<script type="text/javascript" src="euler07spec.js"></script> | |
<!-- include source files here... --> | |
<!-- https://gist.github.com/1714307 --> | |
<script type="text/javascript;version=1.7" src="euler07.js"></script> | |
<script type="text/javascript"> | |
(function() { | |
var jasmineEnv = jasmine.getEnv(); | |
jasmineEnv.updateInterval = 1000; | |
var trivialReporter = new jasmine.TrivialReporter(); | |
jasmineEnv.addReporter(trivialReporter); | |
jasmineEnv.specFilter = function(spec) { | |
return trivialReporter.specFilter(spec); | |
}; | |
var currentWindowOnload = window.onload; | |
window.onload = function() { | |
if (currentWindowOnload) { | |
currentWindowOnload(); | |
} | |
execJasmine(); | |
}; | |
function execJasmine() { | |
jasmineEnv.execute(); | |
} | |
})(); | |
</script> | |
</head> | |
<body> | |
<h1>Problem 7</h1> | |
<blockquote>By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, | |
we can see that the 6th prime is 13. What is the 10,001st prime number? | |
Ans = <script type="text/javascript">document.write(Euler07.getNthPrime(10001));</script></blockquote> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment