First, we used For Loop to iterate a loop between 1 and 100 values. 2 is a prime number but all of the multiples of 2 will be composite numbers since they will be divisible by 2. ![]() ![]() ![]() Trending Questions Does melting los or gain thermal energy? How can newtons laws be described when a satellite orbiting around earth is knocked out of orbit by a meteor? Is the sun bad for the earth? What are the designations of the three primary layers of the Earth's ionosphere? What is a meteroright? Where did the UARS crashed? What is the weight of a ball with a mass of 0. This Python program prints the prime numbers from 1 to 100 using for loop and break. 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167. We are going to create a table with all of the prime numbers that exist up to 100.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |