include prime sieve based on Scott's encoding