import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; boolean[] box = new boolean[5000001]; ArrayList sosu = new ArrayList<>(); Arrays.fill(box,2,box.length,true); sosu.add(0); for(int i=2 ; i<5000001; i++){ if(box[i]){ sosu.add(i); for(int j=i*2; j<5000001; j+=i){ box[j] = false; } } } sosu.add(5000001); int tage = 0; for(int i=0; i0){ bit |= (1< 0){ left = i+1; right = i+1; sub_bit = 0; } } System.out.println(ans); } }