update next-prime-number path