[perfect number] Fixed the bug caused by memset