Skip to content

Latest commit

 

History

History

24-number-theory

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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