import java.util.*; public class Main { static boolean check(int a,String b){ String c=a+""; for(int i=0;i sosuu = new ArrayList<>(); boolean[] era = new boolean[5000001]; for(int i=2;i*i<=5000000;i++){ if(!era[i]){ sosuu.add(i); for(int j=2*i;j<=5000000;j+=i){ era[j]=true; } } } int t=0; int s=0; int ans=0; int size = sosuu.size(); while(t