Fixed alot. Now the qs seems to work for small numbers
Sieve optimized