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