import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static boolean isPrime(long n) { if (n%2==0) return false; for(long i=3;i*i<=n;i+=2) { if(n%i==0) return false; } return true; } static long find(long n){ long d=2; while(d