Write a static method countPrimes that accepts in integer parameter n returns the number of primes from 2 to n.
– countPrimes(24) returns 9 because
2, 3, 5, 7, 11, 13, 17, 19, 23 are primes less than or equal to 24.
1) How many primes are less than 1,000,000?