Uses pointfree style in sieveSundaram'