Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
The chapter discusses prime numbers, their properties, and a naive algorithm for primality testing. It also introduces the concept of the greatest common divisor (GCD) and details Euclid's GCD algorithm, highlighting its polynomial time complexity in relation to the number of bits required to represent integers. Key algorithms and their efficiencies are compared and explained.
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
References
ch57.pdfClass Notes
Memorization
What we have learnt
Final Test
Revision Tests
Term: Prime Number
Definition: An integer greater than 1 that has no positive divisors other than 1 and itself.
Term: Composite Number
Definition: An integer that has at least one positive divisor other than 1 and itself.
Term: Greatest Common Divisor (GCD)
Definition: The greatest integer that divides two or more given integers without leaving a remainder.
Term: Euclid's Algorithm
Definition: An algorithm for computing the GCD of two integers based on the principle that the GCD of two numbers also divides their difference.