Developing the setupPrimeList and setupNodeList functions. Working version