updateDynamicListOfNonPrimes() created from while loop
Code in checkTestNumberAgainstNonPrimes is not intuitive and therefore
given its own method to better encapsulate idea