Function to check if immediate children of a node are its factors or not
function IsChilrenPrimeFactor ( parent , a ) { if ( prime [ a . key ] > 0 && ( parent . key % a . key == 0 ) ) return true ; else return false ; }