[3] implement PrimeManager