Javascript program to Check whether a number can be represented by sum of two squares using Fermat Theorem .
function judgeSquareSum ( n ) { for ( i = 2 ; i * i <= n ; i ++ ) { var count = 0 ; if ( n % i == 0 ) {