New answers tagged

0 votes

One OEIS after another

384. Clean, 798 bytes, A001002 ...
user avatar
  • 34.5k
0 votes

Without using numbers, get the highest salary you can. But don't exaggerate!

Zsh, $138166 (14 bytes) <<<\$$[##𡮶] Attempt This Online! 𡮶 is the Unicode character with codepoint 138166. This is the maximum integer score for 14 bytes.
user avatar
  • 20.7k
0 votes

Without using numbers, get the highest salary you can. But don't exaggerate!

Vyxal , 6 bytes, $260847 \$»⟑¬ǎ Try it Online!
user avatar
  • 5,690
2 votes

One OEIS after another

383. Wenyan, 1002 bytes, A000241 ...
user avatar
1 vote

Count /[^a-z]/ig with /[a-z]/ig

Brev, score 13 ((fn (string-length (strse x 'alpha ""))) "(fn(string-length(strse x 'alpha \"\")))")
user avatar
  • 260
1 vote

One OEIS after another

382. Red, 241 bytes, A000179 ...
user avatar
  • 9,954
2 votes

Implement the slowest possible sorting algorithm that retains a fast best case

Python 3, \$O\left(n^2\left(max\left(a\right)-min\left(a\right)+1\right)^{n-1}\right)\$ ...
user avatar
  • 29k
1 vote

One OEIS after another

381. Desmos, 179 bytes, A000255 ...
user avatar
  • 5,690
1 vote

One OEIS after another

380. Red, 255 bytes, A000180 ...
user avatar
  • 9,954
2 votes

One OEIS after another

379. Vyxal, 180 bytes, A000494 ...
user avatar
  • 5,690
2 votes

One OEIS after another

378. Factor, 494 bytes, A000258 ...
user avatar
  • 9,954
1 vote

One OEIS after another

377. Kitten, 258 bytes, A000235 ...
user avatar
  • 34.5k
2 votes

Write the shortest program that generates the most compiler warnings and errors

Rust, 206 chars, 220+2 errors, score 5090, tunable. ...
user avatar
  • 121
4 votes

Big big numbers

Vyxal, 3 bytes ~\$10^{305}\$ øCṪ Try it Online! Thanks to emanresu A for 2 more orders of magnitude Simple number compression builtin, then chop off the last char. ...
user avatar
  • 2,527
1 vote

Count /[^a-z]/ig with /[a-z]/ig

Ruby, score 5, 67 bytes p gets.count"^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" Attempt This Online!
user avatar
  • 20.7k
2 votes

Count /[^a-z]/ig with /[a-z]/ig

BQN, Score: 8, 60 bytes +´¬∘∊⟜"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" Try it here! Thanks to @thejonymyster for helping halve the score!......
user avatar
3 votes

Add a hidden language to a polyglot

20. Versert, 294 bytes ...
user avatar
  • 10.1k
1 vote

12 with no 1234567890, but polyglot

JavaScript (jsshell), Python 3, bash (core utils)?, brainfuck, 109 bytes ...
user avatar
  • 29k
2 votes

12 with no 1234567890, but polyglot

brainfuck, Headass, Javascript; 3 languages, 52 bytes print("+++++++^[>D+++++P++<-]>:".length/"+?".length) Three cussword titled ...
user avatar
2 votes

Add a hidden language to a polyglot

19. AsciiDots, 278 Bytes, Cracked by stasoid ...
user avatar
  • 163
1 vote

Count /[^a-z]/ig with /[a-z]/ig

Ruby, Score: 24, 42 bytes ->s{s.chars.map{_1=~/[A-Za-z]/?0:1}.sum-1} Attempt This Online! There is a -1 the end due to the \n. If you don't coun't it, it's 40 bytes and Score: 22
user avatar
2 votes

12 with no 1234567890, but polyglot

6+ languages, 24 bytes, score < 0.67 Haskell, OCaml, Coq, Common Lisp, Erlang, Octave/Matlab, and many other functional languages ...
user avatar
  • 1,876
3 votes

12 with no 1234567890, but polyglot

5 Languages - Keg, Vyxal, Python 3, 05AB1E and Curlyfrick, 114 bytes ...
user avatar
  • 21.6k
0 votes

12 with no 1234567890, but polyglot

Example Submission, \$1\$ Language(s), \$26\$ Byte(s), Score \$\frac{26}{1^2}=26\$. Language(s): Python print(len('aaaaaaaaaaaa')) Explanation Need I say more...?...
user avatar
2 votes

One OEIS after another

376. tinylisp, 235 bytes, A000231 ...
user avatar
  • 29.8k
2 votes

One OEIS after another

375. Factor, 231 bytes, A001091 ...
user avatar
  • 9,954
2 votes

One OEIS after another

374. Halfwit, 1091 bytes, A000907 ...
user avatar
  • 29.8k
3 votes

One OEIS after another

373. Idris, 907 bytes, A000170 ...
user avatar
  • 62.6k
2 votes

One OEIS after another

372. Vyxal, 170 bytes, A000224 ...
user avatar
  • 29.8k
2 votes

One OEIS after another

371. Factor, 224 bytes, A000490 ...
user avatar
  • 9,954
2 votes

One OEIS after another

370. Swahili, 490 bytes, A000163 ...
user avatar
  • 34.5k
3 votes

Add a hidden language to a polyglot

18. xEec, 271 bytes, cracked by 00Her0 ...
user avatar
  • 10.1k
3 votes

Add a hidden language to a polyglot

17. ><>, 329 bytes, cracked by stasoid ...
user avatar
  • 163
4 votes

Write Moby Dick, approximately

sh+bzip3, 2*321,287+0 = 642574 Based on this submission - except bzip3 manages to get a substantially better compression ratio. Building the file: ...
user avatar
3 votes

Count /[^a-z]/ig with /[a-z]/ig

APL (APLX) Score 6, 8 bytes ⍴⍞∼⎕A,⎕a  shape of…  input… ...
user avatar
  • 27.6k
2 votes

Count /[^a-z]/ig with /[a-z]/ig

APL (NARS2000) Score 19, 31 bytes {≢⍵~⎕av[C,32+C←66..91]} Examples {≢⍵~⎕av[C,32+C←66..91]} 'Hello, World!' evaluates to ...
user avatar
  • 91
2 votes

Count /[^a-z]/ig with /[a-z]/ig

Japt, score: 2, 5 bytes ...
user avatar
  • 3,729
3 votes

Count /[^a-z]/ig with /[a-z]/ig

Python 2, score 9, 40 bytes lambda s:map(str.isalpha,s).count(False) Try it online!
user avatar
  • 6,316
6 votes

Count /[^a-z]/ig with /[a-z]/ig

CJam, score 0, 95 89 82 bytes qeuWcibWcibKAbFbAbHbAbIbfbXfbKBbKbAbDbAbKbfbKYbKbYbCbfbXdfmdUfmOGYbCbfbUfbXfbUfbXb Try it. Explanations ...
user avatar
  • 36.1k
3 votes

Count /[^a-z]/ig with /[a-z]/ig

Alumin, Score 0 (82 bytes) iqipkmddhhdtddtthaueyddhhhdtdhatveyddhhhhhhhdthhthcueydhhhdhathcdthavetrtahycmzfaf Try it online! I thought this would be a funny ...
user avatar
3 votes

Count /[^a-z]/ig with /[a-z]/ig

Wolfram Language (Mathematica), score 4, 40 bytes ss~StringCount~Except@LetterCharacter Try it online!
user avatar
  • 15.6k
3 votes

Count /[^a-z]/ig with /[a-z]/ig

PowerShell Core, 59 bytes, score: 8 10 $input-replace"[abcdefghijklmnopqrstuvwxyz]"|foreach Length Try it online! -2 bytes thanks to user314159
user avatar
  • 1,629
1 vote

Write a polyglot that prints the language's name

PE/bash/x86/C/Ruby/Python2, 330 bytes score ≈ 0.0445 xxd: ...
user avatar
  • 10.1k
5 votes

Count /[^a-z]/ig with /[a-z]/ig

Jelly, score 3, 4 bytes @caird-coinheringaahing saves 1 byte! ḟØẠL Attempt This Online! Explanation: Filter alphabetic characters from input, then return length
user avatar
6 votes

Count /[^a-z]/ig with /[a-z]/ig

JavaScript (in Browser), Score 4, 120 bytes eval(atob`ZXZhbCgicyAgPSIrICAiPnMubWEiKyAidGNoKCIrICIvWyIrICAiXmEtekEtWiIrICJdLyIrImcpPyIrICIubCIrImVuZyIrInRoIHwgMCIp`) ...
user avatar
  • 29k
4 votes

Count /[^a-z]/ig with /[a-z]/ig

Perl 5 + -n0 -M5.10.0, Score: 3, 14 bytes say s M\PlMMig Try it online!
user avatar
  • 22.2k
3 votes

Count /[^a-z]/ig with /[a-z]/ig

C# (Visual C# Interactive Compiler), 11 Score, 32 bytes s=>s.Count(c=>!char.IsLetter(c)) Try it online!
user avatar
  • 2,641
4 votes

Count /[^a-z]/ig with /[a-z]/ig

Rust, score 14, 42 bytes |s|s.replace(char::is_alphabetic,"").len() Attempt This Online! Only works for ASCII inputs, because ...
user avatar
  • 34.5k
4 votes

Count /[^a-z]/ig with /[a-z]/ig

Wolfram Language (Mathematica), score 5, 39 bytes sStringLength@s-Total@LetterCounts@s Try it online! Doesn't work if the input contains non-ASCII letters (e.g. <...
user avatar
  • 34.5k
10 votes

Count /[^a-z]/ig with /[a-z]/ig

Charcoal -v, 36 bytes, score 0 CastLengthFilterqNotCountaUppercasei Try it online! Explanation: Charcoal's verbose parser is somewhat lax, not always requiring ...
user avatar
  • 144k

Top 50 recent answers are included