generate sieve properly, however it dies when it tries to store 3865 as initial value for sieve