public static void main(String[] args) {
		boolean[] grid = new boolean[2000001];
		
		for(int i = 2; i < Math.sqrt(2000000)+1; i++)
		{
			for(int j = 2*i; j < 2000000; j=j+i)
			{
				grid[j] = true;
			}
		}
		
		long res = 0;
		
		for(int i = 2; i < 2000000; i++)
		{
			if(!grid[i])
			{
				res += i;
				System.out.print(" + " + i);
			}
		}
		System.out.println(" = " + res);
	}