--- from: http://rosettacode.org/wiki/Legendre_prime_counting_function note: Prime Numbers