Answer-Chaining - Positive divisors of a number
Answer 20, Brain-Flak, 11
I would like to just take the time to thank everyone that has helped contribute to this goal:
Riley, 20 bytes
LegionMammal, 15 bytes
ETHproductions, 11 bytes
Lynn, 1 byte
The following users were not able to contribute bytes directly but did help in other ways:
Mistah Figgins
DJMcMayhem
feersum
Thanks everyone for making this possible!
"qd:A(),(;{A\%!},pe#&f!0pv'%QTS|Q@░┼_¥f::+!vUGw
)((({})<>)){((({}[()]<n=int(input({})(<>))><>)<{i=1div=wvhile(({})){({}[()])<>}{}}{}<>([{}()]{})><>)<>{ifn%i==g00div.append(<{}<>{}<>>i)i=i+1}{}printdiv)}
#R
{}T:.eX╜R;j`;╜0%Y*`M∩\"ILD¹s%_Ï,
Try it online!
Answer 3: MATL, Distance 15
:tGw\~)
%n=int(input())
%i=1
%div=[]
%while (i<=n):
% if n % i == 0:
% div.append(i)
% i+=1
%print(div)
Answer 7, Japt, 15
ò f!vU"Gw\((()<>))
n=int(input())
i=1
div=[]
while (i<=n):
if n % i == 0:
div.append(i)
i=i+1
print(div)#Rḍ⁸T”
Try it online!
Changed #b∫I:b;\?t
to ò f!vU
(10 points) and added some more Brain-Flak code by changing ~(()
to ((()<>))
(5 points). I believe the code we're working toward is
((({})<>)){((({}[()]<(({})(<>))><>)<{(({})){({}[()])<>}{}}{}<>([{}()]{})><>)<>{(<{}<>{}<>>)}{})}{}
Explanation
ò Generate the range [0...input].
f Filter to only items Z where
!vU U.v(Z) returns truthily. (`fvU` would be Z.v(U))
This returns true if U is divisible by Z, false otherwise.
"... The rest of the program is enclosed in this string, which is passed as an extra
argument to `f`. Fortunately, `f` ignores it.
Implicit: output result of last expression