ScratchData LogoScratchData
Back to bigreader's profile

Prime detector

BIbigreader•Created May 16, 2009
Prime detector
0
1
463 views
View on Scratch

Description

A simple prime number detector. Enter any number and the detector will test it to see if it's prime. HOW IT WORKS: The ( ÷ [ 2 ] ) variable near Number shows the progress of the detector. The detector starts with that number at 2. When you start the detector, that number starts going up. The detector is checking to see whether the number you chose is divisible by (÷). If it is, then the number you entered is not prime. The detector stops and the cat says "Not prime!". If the detector reaches half of the number you chose, it stops because the number must be prime.

Project Details

Project ID530404
CreatedMay 16, 2009
Last ModifiedMay 16, 2009
SharedMay 16, 2009
Visibilityvisible
CommentsAllowed