- 2

Create an algorithm and a flowchart that will output all the prime numbers between two numbers

Moreso just write the algorithm

28th Jan 2022, 5:18 PM
Ongora David Otieno
9 Réponses
+ 1
Where's your attempt and what is your difficulty?
28th Jan 2022, 5:57 PM
Emerson Prado
Emerson Prado - avatar
0
The difficulty comes on how to determine if a number is prime and how to find the range
28th Jan 2022, 5:59 PM
Ongora David Otieno
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.
29th Jan 2022, 1:35 AM
Emerson Prado
Emerson Prado - avatar
0
Create an algorithm and flowchart that will out put all the prime number between two numbers
20th Nov 2023, 9:05 PM
Zerihun Zegeye
Zerihun Zegeye - avatar
0
Create an algorithm and a flowchart that will output all the prime numbers between two numbers
20th Nov 2023, 9:08 PM
Zerihun Zegeye
Zerihun Zegeye - avatar
0
Hi
26th Mar 2024, 2:13 PM
Thirumalasetty Swapna
Thirumalasetty Swapna - avatar
0
Please show me answer
26th Mar 2024, 2:14 PM
Thirumalasetty Swapna
Thirumalasetty Swapna - avatar
0
Okay
4th Apr 2024, 3:58 AM
Mambo Malumbe
Mambo Malumbe - avatar
- 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
29th Jan 2022, 4:39 AM
Ongora David Otieno