Update Perfect Numer Code (Cythonized)