@Jack_L_Lance It stops at the first non-1 divisor of n, but it doesn't tell you what it is? Useless.
Coding in poem: Input an integer n For i from 2 to n, then: If n mod i is none Print out "We are done" Else do the for loop again
-
-
-
@mathgrant OK New: Factorial (integer num) { If num is nonzero then run: Recurse and then print Product of the int times factorial(num-1)} - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.