Skip to main content
20-Turquoise
December 24, 2015
Solved

Need help with creating a program function for "How many divisors does 20152016 have ?"

  • December 24, 2015
  • 1 reply
  • 5908 views

  Hello, Everyone.

  Need help with creating a program function for "How many divisors does 20152016 have ?"

     Thanks in advance for your time and help

         Regards.

Best answer by RichardJ

This gives all the proper factors of a number:

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
December 24, 2015

This gives all the proper factors of a number:

24-Ruby IV
December 24, 2015

Prime

divs.png

19-Tanzanite
December 24, 2015

You only need the loop to go from 2 to floor(n/2). 1 and n are factors, but they are not proper factors (and can be easily added outside the loop if desired).

I thought those extra math symbols provided in Prime were just cosmetic. I didn't realize any of them actually "worked". I can't find anything about them in the help. Do you know if they all work, and if so what does a symbol such as "because" does?