Skip to main content
deleted 18 characters in body
Source Link
ATaco
  • 11.7k
  • 30
  • 82

11 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, JavaScript (spidermonkey), and Pyramid Scheme, 342 bytes

I wanted to see if I could break 9 10. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>^\ /* ;n7<>> / \: #include <stdio.h> //out\ // ^----- // - struct k {};int main(){printf("%i",1+sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:10) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 1 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 2 Result in "JavaScript" (A007395): > node normal.js 4 10 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

[Pyramid Scheme](Try it online!Pyramid Scheme)

11 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, JavaScript (spidermonkey), and Pyramid Scheme, 342 bytes

I wanted to see if I could break 9 10. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>^\ /* ;n7<>> / \: #include <stdio.h> //out\ // ^----- // - struct k {};int main(){printf("%i",1+sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:10) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 1 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 2 Result in "JavaScript" (A007395): > node normal.js 4 10 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

[Pyramid Scheme](Try it online!)

11 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, JavaScript (spidermonkey), and Pyramid Scheme, 342 bytes

I wanted to see if I could break 9 10. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>^\ /* ;n7<>> / \: #include <stdio.h> //out\ // ^----- // - struct k {};int main(){printf("%i",1+sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:10) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 1 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 2 Result in "JavaScript" (A007395): > node normal.js 4 10 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

Pyramid Scheme

deleted 144 characters in body
Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

1011 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, and JavaScript (spidermonkey), 218and Pyramid Scheme, 342 bytes

I wanted to see if I could break 99 10. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>\[++>+[+<]>]>^\ /* ;n7<>> / \: #include <stdio.h> //out\ // ^----- // - struct k {};int main(){printf("%i",sizeof1+sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:210) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 01 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 12 Result in "JavaScript" (A007395): > node normal.js 4 210 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

Brainfuck, A010731. 8 for input. Try it online!

><>, A010727, outputs 7. Try it online! [Pyramid Scheme](Try it online!)

10 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, and JavaScript (spidermonkey), 218 bytes

I wanted to see if I could break 9. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>\ /* ;n7<>> #include <stdio.h> struct k {};int main(){printf("%i",sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:2) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 0 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 1 Result in "JavaScript" (A007395): > node normal.js 4 2 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

Brainfuck, A010731. 8 for input. Try it online!

><>, A010727, outputs 7. Try it online!

11 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, JavaScript (spidermonkey), and Pyramid Scheme, 342 bytes

I wanted to see if I could break 9 10. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>^\ /* ;n7<>> / \: #include <stdio.h> //out\ // ^----- // - struct k {};int main(){printf("%i",1+sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:10) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 1 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 2 Result in "JavaScript" (A007395): > node normal.js 4 10 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

[Pyramid Scheme](Try it online!)

Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

10 languages: C, C++, JavaScript (nodejs), Ruby, JavaScript (modern browser), Perl, dc, ><>, brainfuck, and JavaScript (spidermonkey), 218 bytes

I wanted to see if I could break 9. I decided to use mainly non-esoteric languages.

 //;<<E;#6nq>>>-[++>+[+<]>]>\ /* ;n7<>> #include <stdio.h> struct k {};int main(){printf("%i",sizeof(struct k));} //;\ E //;\ `echo`; print($??3:5) ;//;#*/ console['log'](this['window']?4:this['print']?9:2) 

Results I was able to verify (for input 4) on my machine:

Result in "C" (A000004): > gcc normal.c -o normal && normal.exe 4 0 Result in "C++" (A000012): > g++ normal.cpp -o normal && normal.exe 4 1 Result in "JavaScript" (A007395): > node normal.js 4 2 Result in "Ruby" (A010701): > ruby normal.rb 4 3 Result in "Perl" (A010716): > perl -f normal.pl 4 5 Result in "dc" (A010722): > echo 4 | dc -f normal.dc 6 

Brainfuck, A010731. 8 for input. Try it online!

><>, A010727, outputs 7. Try it online!