Implementation of sieve of Sundaram