Practice Problems for Number Theory
Primes and factorisation
- TDPRIMES - Printing some primes
- BREAKING - Number Breaking
- 1165/D - Almost All Divisors
- 230/B - T-primes
- 59/B - Fortune Telling
- CDRSANJ - CODER FIRST PROBLEM
- PRIME1 - Prime Generator
- 26/A - Almost Prime
- VECTAR8 - Primal Fear
- 776/B - Sherlock and his girlfriend
- HS08PAUL - A conjecture of Paul Erdős
- NGIRL - Namit In Trouble
- DCEPC505 - Bazinga!
- Project Euler #134: Prime pair connection
MOD and GCD
- John and GCD List
- Maximise GCD
- Sherlock and GCD
- 1203/C - Common Divisors
- 1245/A - Good ol' Numbers Coloring
- Rearrange array using only O(1) extra space
- GCDMOD
- 582/A - GCD Table
- 1285/C - Fadi and LCM
- 1266/C - Diverse Matrix
Binary Exponentiation, Fermat’s Theorem and ETF
- LASTDIG - The last digit
- ETF - Euler Totient Function
- 1295/D - Same GCDs
- COZIE
- SMPLSUM
- LCMSUM - LCM Sum
- Find a^(b^c) mod (10^9+7)