Prime and Composite Number Detector

Problem-based Digital Making Tasks

  1. Is 7081 a prime or composite number?  
  2. 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).  

Possible 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s