Sieve of Eratosthenes -It finds all prime numbers up to a given limit