Groups
Category
Level
Stars and Bars counts the ways to distribute n identical items into k distinct bins using combinations.
The Sieve of Eratosthenes marks multiples of each prime to find all primes up to n in O(n log log n) time.
The greatest common divisor (gcd) of two integers is the largest integer that divides both without a remainder.