#include <stdio.h>
#include<math.h>
int main()
{
int test(int a,int b);
int a, b;
scanf("%d %d",&a,&b);
int z;
z=test(a,b);
printf("%d",z);
return 0;
}
int test(int a,int b)
{
int h,k=0;
int i,j;
for(i=a;i<=b;i++)
{
for(j=1;j<=i;j++)
{
if(i%j==0)
{
h++;
}
}
if(h==2)
{
k+=i;
}
h=0;
}
return k;
}

京公网安备 11010502036488号