A Folding Sieve