Skip to content

Files

Latest commit

author
Victor Lecomte
Sep 26, 2016
9b8067f · Sep 26, 2016

History

History

24-number-theory

Unit 24: Number theory

This unit covers aspects of number theory that are useful in programming contests and lead to interesting algorithms:

  • Prime numbers and prime check
  • Sieve of Eratosthenes (and variants)
  • Greatest Common Divisor and Least Common Multiple
  • Extended Euclid's algorithm

Prerequisites

  • Primary school level arithmetics
  • Unit 1: Complexity

Practice problems

Easy

Less easy