Chaddai, Unfortunately, your program doesnt work ;-)The function needs to take a parameter, which is the upper limit on our sieve, and return a single value, which is the number of primes in that interval. Complex requirements I know ;-)