C # program to count prime weight nodes between two nodes in the given tree
using System ; using System . Collections . Generic ; class GFG { static readonly int MAX = 1000 ; static int [ ] weight = new int [ MAX ] ; static int [ ] level = new int [ MAX ] ; static int [ ] par = new int [ MAX ] ; static bool [ ] prime = new bool [ MAX + 1 ] ; static List < int > [ ] graph = new List < int > [ MAX ] ;