Change sieve to square root