2
Exploring Divisibility and Primes
You can add, subtract, or multiply any two integers and get an integer back. But when you divide one integer by another, the answer doesn’t have to be an integer. The special case when the result of the division is an integer is worth noticing. Also notable are those rare cases where a number can’t be cleanly divided by any numbers besides 1 and itself. We call those prime numbers.
In this chapter, we’ll investigate these two interesting phenomena. These concepts are fundamental to number theory, the study of the properties and mathematics of integers. Number theory is used for everything from random number ...
Get Math Hacks for Scratch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.