Exercise-3. Prime numbers
Write a program that finds and prints the first 25 prime numbers, five numbers per line.
Use the following logic: Let N be a number you wish to examine if it is a prime number. For this you check if that number is exactly divisible by any of the numbers from 2 to N/2. Once you find it is divisible, you can stop going further since that number is not a prime number. However, if the number is not exactly divisible by any of the numbers from 2 to N/2, then it is a prime number. You need to keep a count of the prime numbers found since you need just the first 25 prime numbers only.
how do you do this part?