← All sheets

Basics of Number Theory

Build a foundation in number theory — 100 CodeForces problems tagged number theory, laddered from 800 up to 1400 as the ideas get sharper.

100 problems33 rated 80016 rated 90019 rated 100012 rated 11006 rated 12008 rated 13006 rated 1400
#ProblemRatingStatusLinks
001Game with Integers1899A800
002Again Twenty Five!630A800
003Design Tutorial: Learn from Math472A800
004Maximum GCD1370A800
005Bachgold Problem749A800
006Maximum Multiple Sum1985B800
007United We Stand1859A800
008LCM Problem1389A800
009Ordinary Numbers1520B800
010Forbidden Integer1845A800
011EhAb AnD gCd1325A800
012Maximize?1968A800
013I'm bored with life822A800
014Sieve of Erato67henes2195A800
015Turtle Math: Fast Three Task1933B800
016Gregor and Cryptography1549A800
017Serval and Mocha's Array1789A800
018Digits Sum1553A800
019Minimal Coprime2063A800
020Greatest Convex1768A800
021Kamilka and the Sheep2092A800
02220231916A800
023The Play Never Ends2071A800
024Two Regular Polygons1312A800
025Strange Functions1455A800
026Potion-making1525A800
027Carnival Wheel2180A800
028Find Minimum Operations2020A800
029Captain Flint and Crew Recruitment1388A800
030Perfectly Imperfect Array1514A800
031Dora's Set2007A800
032GCD Arrays1629B800
033Circuit2032A800
034Odd Divisor1475A900
035Ilya and Bank Account313A900
036Longest Divisors Interval1855B900
037Almost Prime26A900
038Exciting Bets1543A900
039AvtoBus1679A900
040Permutation Swap1828B900
041Strange Partition1471A900
042Array Reodering1535B900
043Hexadecimal's theorem199A900
044Prime Subtraction1238A900
045Left and Down2125B900
046Yet Another Tetris Problem1324A900
047GCD Problem1617B900
048Fun Permutation2137B900
049Fireworks1945B900
050Lucky Division122A1000
051Arpa’s hard exam and Mehrdad’s naive cheat742A1000
052Multiplication Table577A1000
053Nastia and Nearly Good Numbers1521A1000
054Different Divisors1474B1000
055Mahmoud and a Triangle766B1000
056String LCM1473B1000
057Add and Divide1485A1000
058Minimum LCM1765M1000
059Bad Ugly Numbers1326A1000
060Two Divisors1916B1000
061Fair Numbers1411B1000
062Simple Repetition2093C1000
063Yet Another Array Problem2167D1000
064Assembly via Remainders1968C1000
065Minimize Equal Sum Subarrays1998B1000
066Phoenix and Puzzle1515B1000
067Superultra's Favorite Permutation2037C1000
068Yet Another Permutation Problem1858C1000
069Coprime1742D1100
070250 Thousand Tons of TNT1899B1100
071Perfect Number919B1100
072Lunatic Never Content1826B1100
073GCD Partition1780B1100
074Product of Binary Decimals1950D1100
075Non-coprime Split1872C1100
076Turtle Fingers: Count the Values of k1933C1100
077Divisors of Two Integers1108B1100
078GCD Compression1370B1100
079Counterexample 483A1100
080GCD Length1511B1100
081Pleasant Pairs1541B1200
082Make Almost Equal With Mod1909B1200
083XXXXX1364A1200
084Cat Cycle1487B1200
085Sherlock and his girlfriend776B1200
086Yet Another Array Restoration1409C1200
087T-primes230B1300
088Product of Three Numbers1294C1300
089Buying Shovels1360D1300
090Omkar and Last Class of Math1372B1300
091Divisible Pairs1931D1300
092Divide and Equalize1881D1300
093Mere Array1401C1300
094We Were Both Children1850F1300
095I Hate 11111526B1400
096Orac and Models1350B1400
097Mashmokh and ACM414B1400
098Fadi and LCM1285C1400
099Number Game1370C1400
100k-th divisor762A1400

“Open in app” uses the cpally:// protocol and opens the problem directly in CP Ally IDE.