NthPrime, MaxPathSum, TopDice and LargestProdInGrid progs