public class SuShu {
public static void main(String
[] args
) {
String str
="";
for(int i
=10;i
<=100;i
++) {
boolean tag
= true;
for(int j
=2;j
<Math
.pow(i
, 0.5)+1;j
++) {
if(i
%j
==0) {
tag
=false;
break;
}
}
int s
= 0;
if(tag
) {
s
=i
/10+i
%10*10;
for(int j
=2;j
<Math
.pow(s
, 0.5);j
++) {
if(s
%j
==0) {
tag
=false;
break;
}
}
if(tag
) {
str
=str
+i
+" ";
}
}
}
System
.out
.print(str
);
}
}
转载请注明原文地址: https://yun.8miu.com/read-53835.html