Sum of curious numbers