write a java program to calculate the sum of all the prime numbers between the range of 1 and 100.
Answers
Answered by
1
Answer:
public class primeNumbersFoundber {
public static void main(String[] args) {
int i;
int num = 0;
int maxCheck = 100; // maxCheck limit till which you want to find prime numbers.
boolean isPrime = true;
Similar questions