added prime_run function