Javascript program Count prime weight nodes between two nodes in the given tree
var MAX = 1000 ; var weight = Array ( MAX ) ; var level = Array ( MAX ) ; var par = Array ( MAX ) ; var prime = Array ( MAX + 1 ) . fill ( true ) ; var graph = Array . from ( Array ( MAX ) , ( ) => Array ( ) ) ;