Timeline for Calculate Euler's totient function
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jun 24, 2016 at 2:16 | comment | added | cat |
@bkul Well, I'm thankful for strong typing and TYPED: in real Factor code :P
|
|
Jun 24, 2016 at 1:59 | comment | added | jqkul | Ah, dang. Strong typing strikes again. | |
Jun 24, 2016 at 1:58 | comment | added | cat |
@bkul Thanks for the suggestion! :D Unfortunately, there is no compatibility whatsoever between numbers and t/f (symbols) in Factor, so the only way to implement that would be with [ dup iota swap '[ _ gcd nip 1 = 1 0 ? ] map sum ] , which is the same exact length as the current solution.
|
|
Jun 24, 2016 at 1:49 | comment | added | jqkul |
[ dup iota swap '[ _ gcd nip 1 = ] map sum ] saves 6 bytes (I think - not very experienced with Factor).
|
|
Jun 24, 2016 at 1:37 | history | answered | cat | CC BY-SA 3.0 |