Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.1 KB

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