New answers tagged

0

Trigger, 780 bytes \$y=39\$. Used thus far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=cd<AB _ __AAB<<dddccccccccc___ccccccccccccccccccccdc==d=b=b=b=`HH&_AAAAAAAAA_AAAAAAAA_AAAAAB&&a&_&a&a&&.&&&&&&&&&&&&&&&&&&&&&...


2

Explode, 741 bytes \$y=38\$. Used thus far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=cd<AB (trailing space) AAB<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAAB&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&...


1

Keg -rn, 703 bytes \$y=37\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=cd<AB AAB<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAAB&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff....


4

288. Pascal (GNU), 13500 bytes # 6 "($?63_lv+'50;+'51;5 5 %$\--$[250=@$]aat\" a/4*DvehfbIg/\"" 3 4//*26qkp16*^[.qx]"[8=,k]Pk PPX~_~)"xvy"\( 7# CO|"14" #:7 9 7 9 7 222222222222222222222222 "'" # ##\\ # 1"7"//[']['] ```` [>.>.?]~~)[7aatxy\#184 O@ (22)Siii/ \psddpsdoh ]##### #######++(-...


1

287. Refunge, 13305 bytes #16 "($?63lv+'50;+'51;5 5 %$\--2$[# #@$]aat_" /*{\D8gv ef26q[if.q8=P,k]PPX~_~^)"xv"y\('#CO|"14" 7 9 7 9 7 222222222222222222222222 ##*/ #/*1&7//```"` [>.> .]~~)['][7aat_ '(22)Siii/ \psddpsdoh ;#####]#######++(- ...


0

Keg, -rn, 666 bytes \$y=36\$ , Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=cd<A AA<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAA&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff....


3

HTML, 630 bytes \$y = 35\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=cd< <<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888....


1

Trigger, 595 bytes \$y = 34\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=c dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@....


0

Keg, -rn, 561 bytes \$y=33\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb=c cccccccccccccccccccccccccccccc===b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@*...


2

Trigger, 528 bytes \$y=32\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb= ===b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78....


2

Trigger, 496 bytes \$y=31\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`&Hb bbb`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%...


1

Trigger, 435 bytes \$y = 29\$, Used so far: 1'2q#,9/j;0"35s46%7*x@f8.a`& `&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*....


2

Keg, -rn, 406 bytes \$y=28\$, 1'2q#,9/j;0"35s46%7*x@f8.a` `aaa.aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s\/s@/90*%35*s46#".9\s99%%9%90s9/"/j0s,.`\`"`\*0\"#s,`#,22s01;"*'s"*;0;j/@x.\.xxxx"...


2

Trigger, 378 bytes \$y = 27\$, Used so far: 1'2q#,9/j\;0"35s46%7*x@f8.a aaa.aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s\/s@/90*%35*s46#".9\s99%%9%90s9/"/j0s,.\"\*0\"...


4

Trigger, 351 bytes \$y=26\$. Used so far: 1'2q#,9/j\;0"35s46%7*x@f8. ...ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s\/s@/90*%35*s46#".9\s99%%9%90s9/"/j0s,.\"\*0\"#s,#,22s01;"*'s"*;0;...


3

Keg, -hr, 325 bytes \$y=25\$. Used so far: 1'2q#,9/j\;0"35s46%7*x@f8 ffffffffffffffffffffffff888888888888888888888@@@*@@@@@@@@7%7*77%*7*77%666666%@x*78887*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s\/s@/90*%35*s46#"9\s99%%9%90s9/"/j0s,\"\*0\"#s,#,22s01;"*'s"*;0;j/@x\xxxx"s;...


2

Keg, -hd, 300 bytes \$y=24\$ Used so far: 1'2q#,9/j\;0"35s46%7*x@f ffffffffffffffffffffffff@@@*@@@@@@@@7%7*77%*7*77%666666%@x*77*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s\/s@/90*%35*s46#"9\s99%%9%90s9/"/j0s,\"\*0\"#s,#,22s01;"*'s"*;0;j/@x\xxxx"s;x@xx,0;%#x\"\;xxqsj*j"0j%%jj'j,#\"j%qs,q0q2/"\%s@//s;0;%;;0"s77*...


4

Trigger, 276 bytes \$y=23\$. Used so far: 1'2q#,9/j\;0"35s46%7*x@ @@@*@@@@@@@@7%7*77%*7*77%666666%@x*77*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s\/s@/90*%35*s46#"9\s99%%9%90s9/"/j0s,\"\*0\"#s,#,22s01;"*'s"*;0;j/@x\xxxx"s;x@xx,0;%#x\"\;xxqsj*j"0j%%jj'j,#\"j%...


5

Befunge-98, 253 bytes \$y=22\$. Used so far: 1'2q#,9/j\;0"35s46%7*x *7%7*77%*7*77%666666%x*77*7%*7*77%6*666666666655555555555555444444%***4%44*4*444444xxxx"033333%33333333s;s\/s/90*%35*s46#"9\s99%%9%90s9/"/j0s,\"\*0\"#s,#,22s01;"*'s"*;0;j/x\xxxx"s;xxx,0;%#x\"\;xxqsj*j"0j%%jj'j,#\"j%qs,q0q2/"\%s/...


3

Trigger, 231 bytes \$y=21\$. Used so far: 1'2q#,9/j\;0"35s46%7* *7%7*77%*7*77%666666%*77*7%*7*77%6*666666666655555555555555444444%***4%44*4*444444"033333%33333333s;s\/s/90*%35*s46#"9\s99%%9%90s9/"/j0s,\"\*0\"#s,#,22s01;"*'s"*;0;j/\"s;,0;%#\"\;qsj*j"0j%%jj'j,#\"j%qs,q0q2/"\%s//s;0;%;;0"s77*...


4

Trigger, 190 bytes \$y=19\$. Used so far: 1'2q#,9/j\;0"35s46% %%%666666%%%6666666666655555555555555444444%4%444444444"033333%33333333s;s\/s/90%35s46#"9\s99%%9%90s9/"/j0s,\"\0\"#s,#,22s01;"'s";0;j/\"s;,0;%#\"\;qsjj"0j%%jj'j,#\"j%qs,q0q2/"\%s//s;0;%;;0"s Try it online! Here's hoping using % ...


2

Keg, - hr, 171 bytes \$y=18\$. Used so far: 1'2q#,9/j\;0"35s46 66666666666666666555555555555554444444444444444"03333333333333s;s\/s/9035s46#"9\s99990s9/"/j0s,\"\0\"#s,#,22s01;"'s";0;j/\"s;,0;#\"\;qsjj"0jjj'j,#\"jqs,q0q2/"\s//s;0;;;0"s Try it online!


2

Keg -hr, 153 bytes \$y = 17\$, Used so far: 1'2q#,9/j\;0"35s4 555555555555554444444444444444"03333333333333s;s\/s/9035s4#"9\s99990s9/"/j0s,\"\0\"#s,#,22s01;"'s";0;j/\"s;,0;#\"\;qsjj"0jjj'j,#\"jqs,q0q2/"\s//s;0;;;0"s Try it online!


1

Keg, -hr, 120 bytes \$y = 15\$, Used so far: 1'2q#,9/j\;0"35 55555555555555"03333333333333;\//9035#"9\999909/"/j0,\"\0\"#,#,2201;"'";0;j/\";,0;#\"\;qjj"0jjj'j,#\"jq,q0q2/"\//;0;;;0" Try it online! Yeah, you can pretty much tell that I'm gonna do this a lot.


3

Keg, -hr, 105 bytes \$y=14\$. Used so far: 1'2q#,9/j\;0"3 "03333333333333;\//903#"9\999909/"/j0,\"\0\"#,#,2201;"'";0;j/\";,0;#\"\;qjj"0jjj'j,#\"jq,q0q2/"\//;0;;;0" Try it online! or Check it!


4

Keg, -hr, 78 bytes \$y=12\$. Used so far: 1'2q#,9/j\;0 0;\//90#9\999909//j0,\\0\#,#,2201;';0;j/\;,0;#\\;qjj0jjj'j,#\jq,q0q2/\//;0;;;0 Try it online! And this kids, is why we use languages where single digits auto push! This pushes a whole bunch of stuff, a 0, then prints the t.o.s using the -hr flag.


5

Befunge-98 (FBBI), 66 bytes \$y=11\$. Used so far: 1'2q#,9/j\; ;\//9#9\99999//j,\\\#,#,221;';;j/\;,;#\\;qjjjjj'j,#\jq,qq2/\//;;;; Try it online! ; is the comment character in Befunge, and this program works by running ';,q with inapplicable parts commented out. Doesn't work in Pyfunge for reasons I can't figure out.


6

Trigger, 55 bytes \$y=10\$. Used so far: 1'2q#,9/j\ \//9#9\99999//j,\\\#,#,221'j/\,#\\qjjjjj'j,#\jq,qq2/\// Try it online! This took a lot longer than I'm willing to admit...


6

Befunge-98, 45 bytes \$y=9\$. Used so far: 1'2q#,9/j //9#999999//j,#,#,221'j/,#qjjjjj'j,#jq,qq2/// Try it online! Explanation Mainly (ab)uses j to skip sections we don't want to execute. // # Divide twice (no-ops, as 0/0 is 0 in Befunge-98) 9 # Push 9 #9 ...


8

2sable, 36 bytes //9#999999//,#,#,221'/,#q',#q,qq2/// \$y=8\$. Used so far: 1'2q#,9/ Try it online. Maybe this opens up some other languages that use // to comment. :) Explanation: 2sable is an old version of 05AB1E (legacy) (which of itself is an old version of 05AB1E). The legacy version outputs a leading newline however: try it online. And the latest ...


5

R, 28 bytes 9#999999,#,#,221',#q',#q,qq2 \$y=7\$. Used so far: 1'2q#,9 Try it online! Based on a combination of functions may output via their return values and the fact that R functions naturally output their return values to STDOUT (albeit with some prepended characters to indicate index of the outputed value), I hope that this is Ok. Explanation: 9 ...


6

Befunge-98, 21 bytes #,#,#,221',#q',#q,qq2 \$y=6\$. Used so far: 1'2q#, Try it online! # # Skip the next instruction , # (skipped) #, # (skipped) #, # (skipped) 221 # Push 2, 2, 1 onto the stack ', # Push character ',' ...


6

05AB1E, 15 bytes ###221'#q'#qqq2 \$y=5\$. Used thus far: 1'2q# Try it online. Maybe this opens up some other languages that use # to comment. :) Explanation: ### # Split by spaces three times (no-ops without input) 221 # Push integer 221 '# '# Push character "#" q # Stop the program ...


7

05AB1E, 10 bytes \$y=4\$. Used so far: 1'2q 221'q'qqq2 Try it online! 221 # push 221 to the stack 'q'q # push character q (twice for good measure) q # quit; implicitly print top-of-stack q q2 # no-ops


4

Japt, 6 bytes \$y=3\$ Used so far: 1'2 221''2 Test it Explanation The code is transpiled to 221, "'", 2 and Japt only implicitly prints the last expression so outputs 2


7

Polyglot, 3 bytes 1'' \$y=2\$. Used thus far: 1'. This works in a bunch of stack-based languages, which basically all do the following: 1 # Push a 1 to the stack '' # Push the string "'" to the stack # (output the top of the stack implicitly as result) Try it online in ,,,. Try it online in 05AB1E. Try it online in Japt. etc.


4

///, 1 byte \$y=1\$ Used so far: 1 1 Try it online! Just to start things off. Explanation: 1 # since this isn't a / or \, the character is simply printed and removed. # no characters left so the program terminates.


2

C (gcc), submission #11, 432 bytes n,m,z,c,q,a,s,t;A(a,b){return b?A(b,a%b):a;}B(n){if(n<=1)return 1-1;for(int i=2;i<n;i++)if(n%i==1-1)return 1-1;return 1;}C(n,c,z){while(c<n){if(B(z++))c++;}return z-1;}D(n){return(!n||n==1)?n:(D(n-1)+D(n-2));}main(){putchar(48);scanf("%d",&n);t=s=n;while(--t)s+=n;printf("\n%d\n%d\n",D(n),s);...


1

286. Trefunge-98 (CCBI), 13300 bytes #16 "($?63lv+'50;+'51;5 5 %$\--2$[# #@$]aat_" /*{\D8gv ef26q[if.q8=P,k]PPX~_~^xy)\('#CO|"14" 7 9 7 9 7 222222222222222222222222 ##*/ #/*1&7//```"` [>.> .]~~)['][7aat_ '(22)Siii/ \psddpsd;oh #####]#...


Top 50 recent answers are included