public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int start = scanner.nextInt();
int end = scanner.nextInt();
method(start,end);
}
public static void method(int start, int end) {
int count=0;
int i;
int t;
if(start>end){
t=start;
start=end;
end=t;
}
for(i=start;i<=end;i++){
if(judge(i)==true){
count+=1;
}
}
//write your code here......
System.out.println(start+"到"+end+"之间有"+count+"个大于2的素数");
}
public static Boolean judge(int num){
boolean flag=false;
int i;
int count=0;
for(i=1;i<=num;i++){
if(num%i==0){
count+=1;
}
}
if(count==2){
flag=true;
}
else{
flag=false;
}
if(num==2){
flag=false;
}
return flag;
}
}