Блог пользователя UBERMENSCH.

Автор UBERMENSCH., история, 5 лет назад, По-английски

Problem Link : https://www.spoj.com/problems/PRIMES2/ My Tle Solution : https://pastebin.com/wXtp0wVf In this problem you have to generate primes upto 10^9 . Time limit: 2.281s

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +4 Проголосовать: не нравится

i thought that sieve algorithm is the best algorithm to generate prime numbers and if n is 1e9 we use segmented sieve but sieve and segmented sieve have the same time complexity so i start searching for something else "thanks to you :p " i find an old post on codeforces that it may help you :D