Create FairAndSquare.cpp

A solution to a problem from google codejam 2013,for small inputs,using sieve method for primes and palindromes.