This preview shows page 1. Sign up to view the full content.
Unformatted text preview: prime = true Initialize factor to 2 While factor < number If number % factor == 0 prime == false factor++ If prime == true Display number as prime number++...
View Full Document
This note was uploaded on 02/10/2012 for the course CIS 120 taught by Professor Doran,m during the Spring '08 term at S. Alabama.
- Spring '08