Three functions for list number of primes