Skip to content

Instantly share code, notes, and snippets.

@n3tr
Created April 13, 2013 18:00
Show Gist options
  • Save n3tr/5379409 to your computer and use it in GitHub Desktop.
Save n3tr/5379409 to your computer and use it in GitHub Desktop.
for (var i = minSqr; sum < max; i++) {
if (i.toString() != reverse(i.toString())) continue;
sum = i*i;
if(sum > min && sum < max )
{
sumStr = sum.toString();
if (sumStr == reverse(sumStr)) {
palindromeCount++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment