Problem-based Digital Making Tasks
- Is 7081 a prime or composite number?
- Make a prime or composite detector.
How CT may Support Mathematics Learning
The use of conditionals and Boolean operators will come into play when checking whether a number is prime or composite. In particular, students will need to loop a function to check the divisibility of a given number by checking possible factors between 2 to (dividend – 1).
Solutions

Reference: Ng, O., & Cui, Z. (accepted). Towards a computationally enhanced mathematics education: Primary students’ problem-based digital making. ZDM: The International Journal of Mathematics Education.