language agnostic - SPOJ query- PRIME1 - Prime Generator -




i tried solve question prime generator. people told me first spend sometime problem , go searching or so. when searched google showed me use algorithm called sieve of eranthoses. didn't know how supposed solve question or in wasting time solving question.

thanks question. better try solving problem while. when trying , searching solution brain trains itself. so, sticking problem good.

when you'll fail find solution, ask friend little hint. or may try searching in web hint. if familiar algorithm, must try yourself. otherwise searching tutorial on algorithm might you.

however, sieve of eratosthenes known algorithm finding primes given range. can find information , tutorials here , here.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -