Primality test using a sieve (Prime Adventure part 5)
Channel:
Subscribers:
175,000
Published on ● Video Link: https://www.youtube.com/watch?v=f4Gd_vhe_SU
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?
Other Videos By Art of the Problem
Tags:
primality test
number sieve
sieve
trial division