Study Materials Tutorials HackerEarth Number Theory Notes Mathematics For TopCoders Fast Modular Exponential Squaring Sieve of Eratosthenes Segmented Sieve Self Read Questions Codeforces: Almost Prime SPOJ: LASTDIG Codeforces: T-primes Spoj: PRIME1 - Prime Generator Codechef: Count K-Primes Codechef: Primality Test Spoj: PRIME1 - Prime Generator (Segmented Sieve) Spoj: ALICESIE - Alice Sieve HackerEarth: Chandu and his Interns HackerEarth Code Monk Number Theory Spoj ZSUM - Just Add It Spoj ENIGMATH - PLAY WITH MATH Spoj CRDS - Cards