Sieve now takes prime powers into account.

Still needs integration, testing, and comments.