answersLogoWhite

0


Best Answer

There are flowcharts available for computers, that depend upon brute number crunching. In other words, they are dividing a given number by every lesser number and seeing if there are any that divide evenly into it.

For humans, this is a bit harder. However, here are four steps to let you know if a number can be divided by the numbers 1 through 9 (but not seven).

1. Is it an even number? If yes, then stop, it's not prime.

2. Is it a number ending in zero or five? If yes, then stop, it's not a prime.

3. Do the digits in the number add up to three or nine? If yes, then stop, it's not a prime.

Now, any "yes" answer ends it. But if all the above were answered "no", that doesn't actually end it. Maybe the number can be divided by 7. Or 11. Or even larger numbers.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

a

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you draw a flow chart to check whether a given number is prime or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

[object Object]


To check whether the given number is an Avogadro number or not?

45


Write an algorithm to check whether the given number is odd or even?

Type your answer here... i think we should first enter 1 number then check it


How do you create a flow chart for leap year?

draw a flow chart to find whether the given year is leap year or not


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Write a shell programs for to check whether the given number is an Avogadro number or not?

Avogadro's number is a constant. Therefore only one number is equal to Avogadro's number.


Enter a number and draw a flow chart to get the reverse of the given number and the number is 435?

123


Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not


Find flow chart for factorial of given number?

i need a pic of cuson


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

no


What is a flowchart for finding perfect no?

flow chart to find whther the given number is perfect or not


What is are some of the importance of career progression chart?

A career progression chart helps you determine whether you are heading in the direction you wish. It helps you make decision on whether to continue pursuing your dreams in a given place or move to another in order to achieve your ambitions.