Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

factors addition in pyhone

def factor(num):
  factor = [1]
  for i in range(2,num+1):
     if num%i==0:
         factor.append(i)
  return sum(factor)
 
PREVIOUS NEXT
Tagged: #factors #addition #pyhone
ADD COMMENT
Topic
Name
1+5 =