Write an algorithm and flowchart for finding prime number.
Answers
Answered by
27
Step 1: Input N & M
Step 2: While (N < M)
I=2
Step 4: While (I<N)
Step 5: IF N%I == 0
goto Step 7
Step 6: I++
Step 7: IF I==NUM
Print NUM
Step 7: N++
Flowchart:-
Attachments:
Similar questions
Math,
8 months ago
Math,
8 months ago
Math,
8 months ago
Social Sciences,
1 year ago
English,
1 year ago