Project Euler Question 4
HTML
<div id="answer"></div>
JavaScript
$(document).ready(function(){
largest_p = 0;
for(i = 100; i < 1000; i++)
{
for(j = 100; j < 1000; j++)
{
product = i*j;
if(String(product) == String(product).split("").reverse().join()){
if(product > largest_p) largest_p = product;
}
}
}
alert(largest_p);
})