answersLogoWhite

0


Best Answer

11

User Avatar

Arely Tromp

Lvl 10
3y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The flow goes something like this for an input number N.

If N < 2, exit NOT PRIME.

If N < 4, exit PRIME.

If (N%2) = 0, or (N%3) = 0, exit NOT PRIME.

If N < 25, exit PRIME.

Set D = 5, E = 2 and M = trunc(sqrt(N))

Repeat:

if (N%D) = 0, exit NOT PRIME.

D = D+E, E = 6-E

If D > M, exit PRIME, else go to Repeat.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

You don't write flowcharts, you draw them. Being a text-based forum we cannot show images here, however the related links section contains a link to a flowchart for the creation of the Fibonacci sequence.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Option of drawing a flowchart is not available here. But I can give you the program -

#include<iostream.h>

#include<conio.h>

int main()

{

clrscr();

for(int i=1;i<101;i++)

{

if (i%2!=0)

cout<<i<<endl;

}

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Not possible, because there is no such thing as 'biggest even number'

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

print 3715891200what is this

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

pls ans this

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

step 1:

print "2 4 6 8 10"

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Draw a flow chart for printing 'n' prime numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you draw a prime number chart?

On a chart with 1-100, highlight or color the boxes of numbers that are prime.


How do you draw a flow chart to display the prime numbers between 1 to 100?

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.


How to draw Raptor flow chart for prime number?

Raptor is a program used for script writing and can be used to make flowcharts. Creating a flow chart for determining prime numbers can be done by writing a code that outlines the rules of prime numbers such as dividing by any integer other than the number itself and 1 to get an integer with a remainder.


Draw a chart about the real number system?

real numbers chart system ngft5w4xzcfvo


Draw a flow chart to find HCF of two given numbers?

First you will need to pick out the two numbers. Then you can use your textbook and the instructions in order to draw out the flow chart.


How do you draw a flowchart of HCF of two given numbers?

draw a flow chart to find hcf of two given numbers


Draw a flowchart to arrange 3 numbers in ascending order?

draw a flow chart to arrange 3 numbers in ascending order


How do you draw a flow chart for determining if the two numbers are equal or not?

using OR ().


Draw a flow chart to find square root of n numbers?

No.


Draw a flow chart find the largest number of given 3 numbers?

no


Draw a flow chart to check whether a given number is prime or not?

[object Object]


Draw a flow-chart to count how many of 10 input numbers are positive negative and zero?

draw a flow chart to input ten number and count the positive negative and zero