The TransCompilator

Solved LeetCode program · 377 of 1,000

#0507 · Perfect Number

Easy Math chunk-08.md

Original English source

The target is 28. The total is 0.
For every divisor from 1 to target minus 1.
If target modulo divisor is 0, add divisor to total.

If total is target, show true, otherwise show false.

Open in Playground Browse all 1,000 problems

Expected stdout

true