Post Reply 
[VA] Short & Sweet Math Challenge #25 "San Valentin's Special: Weird Math"
02-18-2021, 01:41 PM
Post: #15
RE: [VA] Short & Sweet Math Challenge #25 "San Valentin's Special: Weird Math...
This should provide all the answers to #6:

20

« { } 1 DUP2 ROT 5 ROLL
START NEXTPRIME + LASTARG NIP
NEXT DROP SQ DUP SIZE 2 SWAP
FOR i 1 OVER SIZE 1 + i -
FOR j DUP j DUP i + 1 - SUB ∑LIST ROT + SWAP
NEXT
NEXT + SORT
»

EVAL

« REVLIST 1 119
START TAIL
NEXT SORT
»

EVAL


Perhaps 19 or less would suffice as the argument for the first program, but I have not enough time to check this out right now.

Best regards,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] Short & Sweet Math Challenge #25 "San Valentin's Special: Weird Math... - Gerson W. Barbosa - 02-18-2021 01:41 PM



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