DP array
var dp = Array . from ( Array ( 200 ) , ( ) => Array ( 20 ) ) ; for ( var i = 0 ; i < 200 ; i ++ ) for ( var j = 0 ; j < 20 ; j ++ ) dp [ i ] [ j ] = new Array ( 1000 ) . fill ( 0 ) ; function sieve ( ) {