- 2
Create an algorithm and a flowchart that will output all the prime numbers between two numbers
Moreso just write the algorithm
9 Respuestas
+ 1
Where's your attempt and what is your difficulty?
0
The difficulty comes on how to determine if a number is prime and how to find the range
0
Pls read the uncountable other questions on prime numbers. As for the range, it depends on what you mean by "two numbers" - are they user determined, or what?
Pls understand that the intent of 'Q&A discussions' is helping people to finish their challenges, so they learn, not giving the full solution without OP effort.
So, check previous answers in this subject, start writing the algorithm, and show where you get stuck. So we know what to help you with and you learn.
0
Create an algorithm and flowchart that will out put all the prime number between two numbers
0
Create an algorithm and a flowchart that will output all the prime numbers between two numbers
0
Hi
0
Please show me answer
0
Okay
- 1
Start
Input P , M
Declare F = 2 , A = Prime
IF F <=(M/P)/2 output A Else
rem = (m/p)%1
if rem is not equal to 0 then f = f + 1
else A = not prime
end while loop
output A
STOP