Skip to main content

Timeline for Calculate the prime factors

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
May 31, 2021 at 6:17 comment added tsh @Spitemaster Another byte (use comma): f=(n,i=2)=>n%i?f(n,i+1):n-i?i+[,f(n/i)]:i
May 31, 2021 at 4:17 comment added Spitemaster You can save a byte by outputting a string rather than an array: f=(n,i=2)=>n%i?n-1?f(n,i+1):"":i+" "+f(n/i)
Dec 26, 2016 at 4:27 history edited ETHproductions CC BY-SA 3.0
added better version
Dec 26, 2016 at 4:25 review Low quality posts
Dec 26, 2016 at 4:30
Dec 26, 2016 at 4:12 history edited ETHproductions CC BY-SA 3.0
golfed 3 bytes
Dec 26, 2016 at 4:06 history answered ETHproductions CC BY-SA 3.0