I tried to solve this code but really I cant .. I don't have any result of it ... if somembody can help , this code works but without result !! :
public class Primenumber {
public static void main(String[] args) {
int n = 10000;
long sum = 0;
loop:
for (int i = 2; i <= n; i++) {
for (int j = 2; j < n; j++) {
for (int k = j; k < n; k++) {
if (i == j * k) {
continue loop;
}
}
}
sum += i;
}
System.out.println("该整数之内的所有素数之和是:" + sum);
}
}