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

Автор nutella2007, история, 4 часа назад, По-английски

Hello. Does anyone know any (non-pseudo) primality tests with complexity better than O(√n)? The thing is, I was reading about a simple one that has O(∛n) or O(∜n) complexity, but now I just can't find it! I remember that the core idea was checking some divisors (not up to square root) and then analyzing cases of prime decomposition. Thank you.

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

»
3 часа назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

Miller–Rabin primality test is the fastest algorithm, but it is not deterministic. You need to run the test multiple times to reduce the failure probability.