this calculates a list of perfect numbers (numbers which are the sum of their factors. it does this very slowly. the basic script(using the custom blocks): factorize (#) find sum of list if <(#) = (return) then{ whatever you want to happen if # is a perfect number