- The prime numbers can be divided by themself or by 1 without any remainder.
- in this program we have to print the first 10 prime numbers : 2,3,5,7,11,13,17,19,23,29.
- Let's do some java to print the first 10 prime numbers. here is the code below.
Create a Primes.java file and write this code in it.
Comments
Post a Comment