Update perfect_num.cpp