This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lego Stax's profile picture

Lua Totient Implementation

Started by Lego Stax, 03 October 2014 - 03:27 AM
Lego Stax #1
Posted 03 October 2014 - 05:27 AM
I have already scoured the internet and this forum for the mathematical Totient function. How would I implement this into Lua? I apologize in advance for my failure to understand a computing implementation of the totient, as I am just learning it. Thank you to all who help. :)/>
theoriginalbit #2
Posted 03 October 2014 - 05:44 AM
A quick Google lead me to this repository that contains a Lua implementation for the Totient function.
Lego Stax #3
Posted 04 October 2014 - 06:15 PM
A quick Google lead me to this repository that contains a Lua implementation for the Totient function.

Thank you so much! I didn't see that when I searched for it. In fact, I only got 1 result out of the entire internet. (perhaps Google ads?) And it wasn't that. Thanks again!