Add flag for functions to specify concurrent/sequential Miller-Rabin