Driver Code
var arr = [ 20 , 7 , 5 , 4 , 3 , 11 , 99 , 87 , 23 , 45 ] var K = 4 ; var N = arr . length ; prime = Array ( 1000000 ) . fill ( 0 ) ; sieve ( prime ) ; subPrimeSum ( N , K , arr , prime ) ;