Question: Write a program that uses two nested for loops and the modulus operator (%) to detect and print the prime numbers from 1 to 10,000.
Write a program that uses two nested for loops and the modulus operator (%) to detect and print the prime numbers from 1 to 10,000. Prime numbers are integral numbers that are not evenly divisible by any other numbers except for themselves and one. Display all the primes found.(IN C++)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
