-Implemented a function that takes a third argument to make it possible
for testing triple combos
-Optimized flow to stop searching when a prime is found if a threshold
is reached