{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


PseudocodeExamplePrimes - prime = true Initialize factor to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Pseudocode example for PrimeNumberGenerator2.java Input low number for search range for prime numbers Input high number for search range for prime numbers Initialize number to low number While number <= high number
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online