Factors, multiples and primes
Warm-upHumanList all the factors of , separated by commas.
List all the factors of , separated by commas.
Which sentence is true?
Is the number prime, composite, or neither?
Which of these numbers are prime? (Choose all that apply.)
What is the greatest common factor of and ?
In Nairobi, one bus leaves the station every minutes and another every minutes. Both leave together right now. After how many minutes do they next leave together?
Which of these writes as a product of primes?
Use the digit-sum test. Which of these numbers are divisible by ? (Choose all that apply.)
Lean writes b ∣ a to mean " is a factor of ", that is, for some . Which Lean statement says that is a factor of ?
Write is_prime(n) that returns True if n is prime and False otherwise. Try every possible factor d from 2 upwards, but stop as soon as d * d > n (the lesson explains why that is enough). The starter uses the mistaken idea that odd numbers are prime, so the tests fail.