Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Competitive Programming: Game Theory & More
·
Module 1
Core Number Theory: Primes and Divisibility
1
Optimized Prime Number Check
Determine if a number is prime in O(sqrt(n)) time using trial division.
2
Sieve of Eratosthenes: Finding Primes to N
Implement the Sieve of Eratosthenes to find all primes up to N.
3
Efficient Prime Factorization
Find the prime factorization of a number in O(sqrt(n)) time.
4
Euclidean Algorithm for GCD
Implement the Euclidean algorithm to compute the Greatest Common Divisor (GCD) of two integers.
5
Finding LCM Using GCD
Compute the Least Common Multiple (LCM) of two integers using their GCD.
Previous module
Next module
Modular Arithmetic Operations