Update main.c

The Sieve of Eratosthenes for finding n prime numbers in an efficient way.