added latency of 1ms within prime check loop