Driver Code
public static void Main ( String [ ] args ) { int [ ] arr = { 20 , 7 , 5 , 4 , 3 , 11 , 99 , 87 , 23 , 45 } ; int K = 4 ; int N = arr . Length ; bool [ ] prime = new bool [ 1000000 ] ; sieve ( prime ) ; subPrimeSum ( N , K , arr , prime ) ; } }