corrected code for  primos and centro