<script type="text/javascript">
function isAPrime()
{
var number = document.getElementById('numberInput').value;
var prime;
if (number >= 0 && number <= 1000000)
{
prime = determineIfPrime(number);
if (prime == true)
document.getElementById("output").innerHTML = number + " is a prime.";
else
document.getElementById("output").innerHTML = number + " is not a prime.";
}
else
document.getElementById("output").innerHTML = "Number out of range";
}