What is the largest prime factor of the number 600851475143? My code:
Code:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>P3--Largest prime factor</title>
</head>
<body>
<!--The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 --> 
<script type="text/javascript">
var value = Largest();
	alert(value);
function Largest(){
	var x;
	for(i=2;i<600851475143;i++)
	{
		if(6008514751435%i == 0)
		  x = i;
	}
	return x;
}

</script>
</body>
</html>
However the web page is not responding....