ScratchData LogoScratchData
Back to Scratch13764's profile

Prime Time

SCScratch13764•Created November 8, 2013
Prime Time
0
0
25 views
View on Scratch

Instructions

Tell the scratch cat how high you want to go to test for prime numbers. He gets tired if you ask for more than 10,000.

Description

My kids and I worked on this. My son was able to suggest several optimizations to the code, including (1) checking only odd numbers, and (2) attempting to divide them only by numbers between 3 and halfway to the number being tested. Yes, I know that in one of the academic papers on Scratch it was mentioned that kids want to do something fun with code other than calculate prime numbers...but we love finding prime numbers!

Project Details

Project ID14050603
CreatedNovember 8, 2013
Last ModifiedNovember 8, 2013
SharedNovember 8, 2013
Visibilityvisible
CommentsAllowed