nth prime working