1. If number < 2 then not prime - end
2. If number == 2 then prime - end
3. If number divisible by 2 then not prime - end
4. If number divisible by 3 then not prime - end
5. If number divisible by 5 then not prime
6. end (It is not necessary to get any more complicated than this because you only need to check divisibility up to the square root of the number in question, and you only asked about numbers up to 20.)
Chat with our AI personalities
In order to draw a flow chart to display the prime numbers between 1 and 100, the rules of prime numbers must be implemented. These are that the number is only divisible by itself and one.
The number 199 is a prime number. See the related link for a prime chart..
On a chart with 1-100, highlight or color the boxes of numbers that are prime.
2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97.
No even number greater than 2 is a prime number.