import java.util.*; |
public class Main { |
public static void main(String[] args) { |
Scanner shuru= new Scanner(System.in); |
int n = shuru.nextInt(); |
int x,y,z= 0 ; |
int [] a; |
a = new int [ 168 ]; |
int i= 0 ; |
for (x= 2 ;x< 1000 ;x++) |
{ |
for (y= 2 ;y<x;y++) |
{ |
if (x%y== 0 ) |
{ |
break ; |
} |
else |
{ |
; |
} |
} |
if (y==x) |
{ |
a[i]=x; |
i++; |
} |
else |
{ |
; |
} |
} |
for ( int p= 167 ;p> 167 -n;p--) |
{ |
z=z+a[p]; |
} |
for ( int j= 167 ;j> 167 -n;j--) |
{ |
if (j== 167 -n+ 1 ) |
{ |
System.out.print(a[j]); |
} |
else |
{ |
System.out.print(a[j]+ "+" ); |
} |
} |
|
System.out.print( "=" +z); |
} |
} |