![]() ![]() To print all the prime numbers between 1 and 100 we would have to start from 2 (since 1 is neither prime nor composite) and then check for each number’s factors. ![]() One is considered neither prime nor composite. Rest of the numbers are called composite numbers. In the given question, we have to find and print all prime numbers between 1 and 100.Īny number is called a prime number if it has no factors other than one and the number itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |