Primality test using a sieve (Prime Adventure part 5)

Subscribers:
175,000
Published on ● Video Link: https://www.youtube.com/watch?v=f4Gd_vhe_SU



Duration: 5:22
13,534 views
58


An attempt at an optimal trial division primality test using the Sieve of Eratosthenes. We visualize the time complexity of storing all primes up to square root of n and then testing each one. Finally we ask: why can't we just store a precomputed list of primes in memory?







Tags:
primality test
number sieve
sieve
trial division