Skip to main content

Timeline for Compute the Carmichael function

Current License: CC BY-SA 3.0

21 events
when toggle format what by license comment
Nov 8, 2016 at 18:51 history edited Sherlock9 CC BY-SA 3.0
Minor editing
Oct 1, 2016 at 3:54 history edited Sherlock9 CC BY-SA 3.0
Minor editing
Sep 30, 2016 at 13:52 history edited Sherlock9 CC BY-SA 3.0
Editing the code
Sep 21, 2016 at 3:45 history edited Sherlock9 CC BY-SA 3.0
Editing the links
Sep 21, 2016 at 3:40 comment added Sherlock9 @GregMartin Thanks for the heads up. Fixed.
Sep 21, 2016 at 3:38 history undeleted Sherlock9
Sep 21, 2016 at 3:38 history edited Sherlock9 CC BY-SA 3.0
Correcting the answer
Sep 21, 2016 at 2:52 history deleted Sherlock9 via Vote
Sep 20, 2016 at 23:20 comment added Greg Martin The assertion that lcm(*a) = product(*a)/gcd(*a) is true when *a is a list of exactly two numbers; however, it is false in general for longer lists (example: if *a is {6,10,15}, it gives 900 instead of the correct answer of 60). [For that matter, it's wrong is *a is a list of one number as well!] And you can check that you get the wrong answer for over half the test cases listed in the OP.
Sep 20, 2016 at 2:10 comment added Sherlock9 @TheBitByte With use of the totient and gcd builtins. This would be shorter if Actually had lcm directly, but I don't mind it that much and that would only knock off 4 bytes at most, anyway.
Sep 20, 2016 at 2:07 comment added Buffer Over Read Actually, I have no idea how you did this in only 19 bytes.
Sep 20, 2016 at 1:16 history edited Sherlock9 CC BY-SA 3.0
Adding to the explanation
Sep 19, 2016 at 18:06 history edited Sherlock9 CC BY-SA 3.0
Minor editing
Sep 19, 2016 at 15:39 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 15:33 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 10:36 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 10:30 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 10:18 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 9:17 history edited Sherlock9 CC BY-SA 3.0
Adding to the explanation
Sep 19, 2016 at 7:57 history edited Sherlock9 CC BY-SA 3.0
More golfing
Sep 19, 2016 at 7:19 history answered Sherlock9 CC BY-SA 3.0