import java.math.*;

public class test0{

// first few digits of e, the chances of a random number being prime
// are about 1/ln(x) so 10 digit numbers about 1/23, we need about 33
// digits.  paste in a few more to be safe.
//
// actually, it was further in than I thought? though it found about the right
// number.
//
// the first prime found in e is the 342,636,120th prime 7,427,466,391.

static String e="2718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427427466391932003059921817413596629043572900334295260595630738132328627943490763233829880753195251019011573834187930702154089149934884167509";

public static void main(String arg[]){
char d[] = e.toCharArray();

char t[] = new char[10];
String test;
BigInteger tbi;

for(int i=0;i<d.length-10;i++){
  for(int j=0;j<10;j++) {
    
    t[j]=d[j+i];
  }
    test=new String(t);
    tbi =new BigInteger(test);
    if(tbi.isProbablePrime(100)) System.out.println(test);
}
}

}
