Java implementation of nodes at prime height in the given tree
import java . util . * ; class GFG { static final int MAX = 100000 ; @ SuppressWarnings ( " unchecked " ) static Vector < Integer > [ ] graph = new Vector [ MAX + 1 ] ;