Program to print the first 10 prime numbersPrime NumbersPrime numbers are the natural numbers that can be divided by their self or by 1 without any remainder. For example: 2, 3, 5, 7, 11, 13, 17 etc. NOTE: 2 is the only even prime number.In this program, we need to print the first 10 prime numbers: 2,3,5,7,11,13,17,19,23,29. Algorithm
Java ProgramOutput: 2,3,5,7,11,13,17,19,23,29 C ProgramOutput: 2,3,5,7,11,13,17,19,23,29 Python ProgramOutput: 2,3,5,7,11,13,17,19,23,29 C# ProgramOutput: 2,3,5,7,11,13,17,19,23,29 PHP ProgramOutput: 2,3,5,7,11,13,17,19,23,29 Next Topic# |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India