200 Questions | 2.5 Hours | 3 Attempts Each
70 Easy · 70 Hard · 60 Advanced
2.5-hour countdown timer
3 attempts per question
Detailed explanations
Topics: Divisibility, Primes, Modular Arithmetic, GCD, LCM, Congruences, Diophantine Equations, Cryptography, Analytic Number Theory
Download score sheet as PDF
Your progress is saved automatically
Number Theory is the study of integers and their properties — it is the mathematical foundation of modern cryptography, coding theory, algorithm analysis, and random number generation. From RSA encryption that secures internet communications to primality testing that underpins cryptographic keys, from GCD algorithms to modular arithmetic in hashing, number theory is essential for cybersecurity, data science, and algorithm design.
A number a divides b (a | b) if there exists integer k such that b = ak. Key divisibility rules: by 2 (last digit even), 3 (sum of digits divisible by 3), 4 (last two digits divisible by 4), 5 (last digit 0 or 5), 6 (divisible by 2 and 3), 9 (sum of digits divisible by 9), 10 (last digit 0). Prime numbers are integers > 1 with exactly two divisors (1 and itself). The Fundamental Theorem of Arithmetic states every integer > 1 factors uniquely into primes.
GCD(a,b) is the largest integer dividing both a and b. Euclid's algorithm computes GCD efficiently: gcd(a,b) = gcd(b, a mod b). Properties: gcd(a,b) × lcm(a,b) = a × b. The Euclidean algorithm is fundamental to many cryptographic operations.
a ≡ b (mod m) means m divides (a-b). Modular arithmetic is the mathematics of remainders and is the foundation of cryptography, hashing, and random number generation. Fermat's Little Theorem: a^(p-1) ≡ 1 (mod p) for prime p. Euler's theorem: a^(φ(n)) ≡ 1 (mod n) when gcd(a,n)=1.
Start the quiz now and build your number theory foundations for a successful career in Computer Science, Cybersecurity, or Data Science!
Explore more quizzes to boost your knowledge in programming, CS, SE, and Maths.