Post Reply 
Brain smoker ...
12-12-2014, 04:25 PM
Post: #2
RE: Brain smoker ...
Nice challenge, it helped me to learn a few things about the Prime !!
Here's what I've found:
  1. first a slightly shorter variation on your excellent solution: sum(map(a,(a)->sum(|a*b|)))
  2. and another way to get to the result: sum(EXECON("sum(abs((&1*b))",a))
The second one is a bit longer but works in both HOME and CAS while the first one works only in CAS.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Brain smoker ... - DrD - 12-12-2014, 02:20 PM
RE: Brain smoker ... - Didier Lachieze - 12-12-2014 04:25 PM
RE: Brain smoker ... - Nigel (UK) - 12-12-2014, 09:18 PM
RE: Brain smoker ... - Han - 12-12-2014, 10:07 PM
RE: Brain smoker ... - Gilles - 12-12-2014, 11:10 PM
RE: Brain smoker ... - Han - 12-13-2014, 12:53 AM
RE: Brain smoker ... - Gilles - 12-13-2014, 08:58 AM
RE: Brain smoker ... - DrD - 12-13-2014, 10:37 AM



User(s) browsing this thread: 1 Guest(s)