Maths WorkshopMaths problems with full solutions

Primes

86 problems · Prime numbers, Fundamental Theorem of Arithmetic and primality testing.

Ex.262GCD of successive integers
#coprime #consecutive integers #gcd
Primes
High school
High school
Ex.263Distinct primes are coprime
#coprime #primes #distinct
Primes
High school
High school
Ex.264Definition and first examples of primes
#primes #definition #examples
Primes
High school
High school
Ex.265GCD with a prime
#gcd #prime #divisor
Primes
High school
High school
Ex.326There are infinitely many primes
#primes #proof by contradiction
Primes
L1
L1
Ex.541Consecutive primes and coprimality
#consecutive primes #coprime #primorial
Primes
High school
High school
Ex.542Coprimality with primes
#coprime #prime #divisibility
Primes
High school
High school
Ex.543The fundamental theorem of arithmetic
#fundamental theorem #factorization #uniqueness
Primes
High school
High school
Ex.544GCD and LCM via prime factorization
#gcd #lcm #prime factorization
Primes
High school
High school
Ex.545Primes in GCD and LCM
#gcd #lcm #prime factorization
Primes
High school
High school
Ex.546Goldbach's conjecture (statement and verification)
#Goldbach conjecture #even numbers #primes
Primes
High school
High school
Ex.547Euclid's proof of infinitely many primes
#Euclid #contradiction #primes
Primes
High school
High school
Ex.548Iterated GCD
#gcd #iteration #associativity
Primes
High school
High school
Ex.549Prime factorization and divisors
#prime factorization #divisors #exponents
Primes
High school
High school
Ex.550Characterization of primes
#primes #characterization #divisors
Primes
High school
High school
Ex.551Using the sieve to test primality
#sieve #primality #application
Primes
High school
High school
Ex.552The sieve of Eratosthenes
#sieve #Eratosthenes #primes
Primes
High school
High school
Ex.553Smallest prime divisor
#smallest divisor #compositeness #sqrt bound
Primes
High school
High school
Ex.554The smallest prime factor
#smallest prime factor #compositeness #bounds
Primes
High school
High school
Ex.555Trial division primality test
#trial division #primality test #algorithm
Primes
High school
High school
Ex.556Twin primes
#twin primes #examples #conjecture
Primes
High school
High school
Ex.625When can 2ⁿ + 1 or 2ⁿ − 1 be prime?
#factorisation #primes #Fermat primes #Mersenne primes
Primes
Olympiad
Olympiad
Ex.1118Coprimality and Euler's theorem
#coprime #Euler theorem #application
Primes
L1
L1
Ex.1119Coprimality with factorials
#coprime #factorial #prime
Primes
L1
L1
Ex.1120Factorial and coprime integers
#factorial #coprime #bounds
Primes
L1
L1
Ex.1121Consecutive primes and products
#consecutive primes #product #gap
Primes
Olympiad
Olympiad
Ex.1122Coprime integers and prime divisors
#coprime #prime divisors #intersection
Primes
L1
L1
Ex.1123Coprime products and primes
#coprime #product #prime
Primes
L1
L1
Ex.1124Divisibility by coprime integers
#coprime #divisibility #product
Primes
L1
L1
Ex.1125Coprime remainders
#coprime #remainders #CRT
Primes
L1
L1
Ex.1126Multiplicativity of $\varphi$
#Euler totient #multiplicative #CRT
Primes
L1
L1
Ex.1127Euler's totient of a prime power
#Euler totient #prime power #formula
Primes
L1
L1
Ex.1128Factoring a large integer
#factorization #primes #algorithm
Primes
L1
L1
Ex.1129Fermat's little theorem
#Fermat #prime #modular exponentiation
Primes
L1
L1
Ex.1130Fermat primality test
#Fermat test #primality #witness
Primes
L1
L1
Ex.1131Fermat's little theorem and compositeness
#Fermat #compositeness test #modular exponentiation
Primes
L1
L1
Ex.1132Totient and coprime residue classes
#totient #coprime #residue classes
Primes
L1
L1
Ex.1133Euclid's lemma
#Euclid lemma #prime #divisibility
Primes
L1
L1
Ex.1134Primes and factorials
#factorial #primes #Wilson
Primes
Olympiad
Olympiad
Ex.1135GCD of a product
#gcd #product #prime factorization
Primes
L1
L1
Ex.1136Mersenne primes
#Mersenne #primes #perfect numbers
Primes
L1
L1
Ex.1137Mersenne primes and exponents
#Mersenne #primes #exponents
Primes
L1
L1
Ex.1138Order modulo a prime
#order #prime #divisor
Primes
L1
L1
Ex.1139Even perfect numbers and Mersenne primes
#perfect numbers #Mersenne #Euclid-Euler
Primes
Olympiad
Olympiad
Ex.1140The prime counting function
#prime counting #pi function #estimates
Primes
L1
L1
Ex.1141Prime gaps
#prime gaps #arbitrary gaps #construction
Primes
Olympiad
Olympiad
Ex.1142Prime powers and divisibility
#prime powers #divisibility #exponents
Primes
L1
L1
Ex.1143Primality test up to $\sqrt n$
#primality test #sqrt #trial division
Primes
High school
High school
Ex.1144Sophie Germain primes
#Sophie Germain #primes #examples
Primes
Olympiad
Olympiad
Ex.1278Infinitely many primes of the form 4k + 3
#primes #Euclid's argument #residues
Primes
Olympiad
Olympiad
Ex.1279n divides 2ⁿ − 1 only for n = 1
#order #Fermat's little theorem #smallest prime divisor
Primes
Olympiad
Olympiad
Ex.1282Wilson's theorem and its converse
#Wilson's theorem #modular inverses #primality
Primes
Olympiad
Olympiad
Ex.1332Infinitely many primes ≡ 1 (mod 4)
#infinitely many primes #order #Euclid's argument
Primes
Olympiad
Olympiad
Ex.1335Prime divisors of 2ᵖ − 1
#Mersenne numbers #order #primality testing
Primes
Olympiad
Olympiad
Ex.1336Prime divisors of n² + n + 1
#order #Fermat's little theorem #primes in progressions
Primes
Olympiad
Olympiad
Ex.1831Bertrand's postulate (statement and examples)
#Bertrand #primes #interval
Primes
Olympiad
Olympiad
Ex.1832Quadratic reciprocity applied
#quadratic reciprocity #Legendre #application
Primes
M1
M1
Ex.1833Primes of the form $4n+1$
#Dirichlet #arithmetic progression #primes
Primes
Olympiad
Olympiad
Ex.1834Fermat test detects compositeness
#Fermat test #witness #compositeness
Primes
L1
L1
Ex.1835Fermat factorization
#Fermat factorization #factoring #difference of squares
Primes
Olympiad
Olympiad
Ex.1836GCD via Euler's totient
#gcd #Euler totient #formula
Primes
L1
L1
Ex.1837Primorial and GCD
#primorial #gcd #primes
Primes
Olympiad
Olympiad
Ex.1838Bounds on the $n$-th prime
#n-th prime #bounds #elementary
Primes
Olympiad
Olympiad
Ex.1839Prime numbers and prime ideals
#prime ideal #Z #prime numbers
Primes
L1
L1
Ex.1840Finding primitive roots
#primitive root #mod prime #computation
Primes
L1
L1
Ex.1841Pseudoprimes
#pseudoprime #Fermat #compositeness
Primes
L1
L1
Ex.1842Primes and polynomial irreducibility
#irreducibility #primes #polynomial
Primes
M1
M1
Ex.1843The sieve of Sundaram
#sieve #Sundaram #primes
Primes
Olympiad
Olympiad
Ex.1958Primes 3 mod 4 and sums of two squares
#sum of two squares #quadratic residues #descent
Primes
Olympiad
Olympiad
Ex.1960An integrality proof by Legendre's formula
#Legendre's formula #floor function #integrality
Primes
Olympiad
Olympiad
Ex.1962The exact power of 3 dividing 2^(3ⁿ) + 1
#p-adic valuation #lifting the exponent #induction
Primes
Olympiad
Olympiad
Ex.1998Which primes divide C(2n, n)?
#Legendre's formula #central binomial coefficient #Bertrand's postulate
Primes
Olympiad
Olympiad
Ex.2191The AKS primality test (statement)
#AKS #deterministic primality #polynomial time
Primes
M1
M1
Ex.2192Elliptic curve factorization (statement)
#elliptic curve #factorization #Lenstra
Primes
M1
M1
Ex.2193The Fermat quotient
#Fermat quotient #prime #congruence
Primes
M1
M1
Ex.2194The Lucas–Lehmer test
#Lucas-Lehmer #Mersenne #primality
Primes
M1
M1
Ex.2195Chebyshev's bounds
#Chebyshev #bounds #prime counting
Primes
M1
M1
Ex.2196Primes in arithmetic progressions
#Dirichlet theorem #arithmetic progression #primes
Primes
M1
M1
Ex.2197The prime number theorem (statement)
#prime number theorem #asymptotic #pi function
Primes
M1
M1
Ex.2198Existence of primitive roots
#primitive root #existence #cyclic group
Primes
M1
M1
Ex.2199Proth's theorem
#Proth #primes #primality
Primes
M1
M1
Ex.2200Quadratic reciprocity (statement)
#quadratic reciprocity #Legendre symbol #primes
Primes
M1
M1
Ex.2201Sophie Germain's theorem
#Sophie Germain #Fermat #primes
Primes
M1
M1
Ex.2202Stirling's formula and primes
#Stirling #factorial #prime counting
Primes
M1
M1
Ex.2203The Miller–Rabin test
#Miller-Rabin #primality #probabilistic
Primes
M1
M1
Ex.2204Wieferich primes (statement)
#Wieferich #Fermat quotient #primes
Primes
M1
M1