Prime Number Generation KLA
Each student is a processor in the pipeline. Sequence of numbers will be passed down the pipeline. If you receive a number and do not currently possess a number, that number becomes yours. If you receive a number and you do possess a number, check if the number you received is perfectly divisible by your number.
- If the number received is perfectly divisible, pass the number received to the
next processor in the pipeline
- Else if the number received is not perfectly divisible, drop the number.