Mar 10, 2012
EaseUS Partition Master Professional Edition 7.1
Reference
Category:Disk partitioning software
Category:Disk cloningQ:
Running time in java - program to find the sum of the numbers between a and b where each number is a prime number
This is the program to find the sum of the numbers between a and b where each number is a prime number.
It is not working. I don't know where I am going wrong. I am new to programming.
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class PrimeNumber {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
if(a>b){
int sum=0;
for(int j=a;j be359ba680
Related links:
Comments