Skip to Content

Integrating Scratch into the Math Classroom

« How do I...?
2 replies [Last post]
Member

I am working with a fifth grade teacher.  She is looking to have her students create programs which test to see if a number is a prime number, or if it is divisble by 2, 3, and so on.  Is there a function in Scratch which returns a remainder?

Thanks.

Replies
Member
I created a project to check for Prime/Composite number. You can check it out -

http://scratched.gse.harvard.edu/resources/prime-or-composite-number
Member

 The block "[  ] mod [   ]" under operators returns the remainder of the first number when divided by the second.