Question: Problem 2 : Write a code that will print all the prime numbers from 2 to 9 . Output will print 2 , 3 ,

Problem 2: Write a code that will print all the prime numbers from 2 to 9. Output will print 2,3,5,7. Numbers which can be divided by other numbers (except 1) are not prime number such as 4, because 4 can be divided by 2.
 Problem 2: Write a code that will print all the prime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!