elegant Sundaram's sieve solution