added running times for primeHelper.getFirst