🌉

Number Theory Meet 2

Created
Tags

Topics

  1. Integer factorization
    • O(n)
    • O(n\sqrt{n} )
  1. Primality Testing
    • O(n\sqrt{n} )
  1. Sieve Algorithm
  1. Linear Sieve
  1. Applications of Sieve
    • checking prime in O(1)
    • factorize in O(logN)
    • Sum/Num divisors
    • highest/smallest prime divisor
    • euler totient function
    • Segmented Sieve
  1. Totient Function and Applications
  1. Miller Rabin

Questions

  1. https://codeforces.com/problemset/problem/26/A (Almost prime, easy)
  1. https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3651 (medium)
  1. https://codeforces.com/contest/653/problem/G (all maths requires a bit of sieve, hard)