title: Dimensional Chess positions

text:
# Question
Title: Dimensional Chess positions
## Task

Any one of these two:

* Determine if a given position (an ordered non-empty collection of integers in the range ‒8 to 8, or ‒7 to 7 if you want) is a valid Dimensional Chess position.
* List all the valid positions in any order.

Make sure to describe your input (if not listing all) and output formats.

The 2368 valid positions are (assuming 1-based enumeration of the first two dimensions):

```
1,1;1,2;1,3;1,4;1,5;1,6;1,7;1,8;2,1,-3;2,1,-2;2,1,-1;2,1,0;2,1,1;2,1,2;2,1,3;2,2,-3;2,2,-2;2,2,-1;2,2,0;2,2,1;2,2,2;2,2,3;2,3,-3;2,3,-2;2,3,-1;2,3,0;2,3,1;2,3,2;2,3,3;2,4,-3;2,4,-2;2,4,-1;2,4,0;2,4,1;2,4,2;2,4,3;2,5,-3;2,5,-2;2,5,-1;2,5,0;2,5,1;2,5,2;2,5,3;2,6,-3;2,6,-2;2,6,-1;2,6,0;2,6,1;2,6,2;2,6,3;2,7,-3;2,7,-2;2,7,-1;2,7,0;2,7,1;2,7,2;2,7,3;2,8,-3;2,8,-2;2,8,-1;2,8,0;2,8,1;2,8,2;2,8,3;3,1,-3,-2;3,1,-3,-1;3,1,-3,0;3,1,-3,1;3,1,-3,2;3,1,-2,-2;3,1,-2,-1;3,1,-2,0;3,1,-2,1;3,1,-2,2;3,1,-1,-2;3,1,-1,-1;3,1,-1,0;3,1,-1,1;3,1,-1,2;3,1,0,-2;3,1,0,-1;3,1,0,0;3,1,0,1;3,1,0,2;3,1,1,-2;3,1,1,-1;3,1,1,0;3,1,1,1;3,1,1,2;3,1,2,-2;3,1,2,-1;3,1,2,0;3,1,2,1;3,1,2,2;3,1,3,-2;3,1,3,-1;3,1,3,0;3,1,3,1;3,1,3,2;3,2,-3,-2;3,2,-3,-1;3,2,-3,0;3,2,-3,1;3,2,-3,2;3,2,-2,-2;3,2,-2,-1;3,2,-2,0;3,2,-2,1;3,2,-2,2;3,2,-1,-2;3,2,-1,-1;3,2,-1,0;3,2,-1,1;3,2,-1,2;3,2,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,7,3;7,8,-3;7,8,-2;7,8,-1;7,8,0;7,8,1;7,8,2;7,8,3;8,1;8,2;8,3;8,4;8,5;8,6;8,7;8,8

```

### Pattern

All ranges are inclusive:

* The first index is in the range 1 to 8 (or 0 to 7 if you want), and is always included.
* The second index is in the range 1 to 8 (or 0 to 7 if you want), and is always included.
* The third index is in the range ‒3 to 3, but is only included if the first index is in the range 2 to 7.
* The fourth index is in the range ‒2 to 2, but is only included if the first index is in the range 3 to 6.
* The fifth index is in the range ‒1 to 1, but is only included if the first index is 4 or 5.

## Examples

Compute all valid indices or (assuming 1-based enumeration of the first two dimensions):

### Valid:

```
1,6
2,2,-3
2,2,2
3,1,2,1
5,1,2,1,0
7,1,-1
8,8

```

### Invalid

```
1
1,6,1
2,1
2,2,-4
3,1,2
7,7
8,0
8,1,1
8,-1

```

# Answer
# JavaScript (ES6),  ~~74 66~~  60 bytes

Expects the first two dimensions in 0-indexed format. Returns `0` for *true* or a positive integer for *false*.

```
a=>a.some(x=>x<-(q=i--&3)|x>(q||7),i=.5)|-i^"12344321"[a[0]]

```

Try it online!

### How?

For each value \\$x\\$ at position \\$i\\$:

* we compute \\$q = (1/2-i)\operatorname{AND} 3\\$ which maps \\$\[0,1,2,3,4\]\\$ to \\$\[0,0,3,2,1\]\\$
* we make sure that we have \\$x\ge -q\\$ and either \\$x \le q\\$ if \\$q\neq 0\\$, or \\$x\le 7\\$ if \\$q=0\\$

In the actual implementation, we start with \\$i=1/2\\$ and subtract \\$1\\$ after each iteration.

We finally make sure that the length is consistent with the leading dimension:

```
-i ^ "12344321"[a[0]]

```

An empty list would pass this test, but the list is guaranteed to be non-empty as per the challenge rules.
> 7 votes

# Answer
# JavaScript (Node.js), ~~91...~~ 63 bytes

```
n=>n.some(e=>i++<2?e<1|e>8:e<i-6|e>6-i,i=0)|i^' 23455432'[n[0]]

```

Try it online!

The ultra-long function. I would appreciate a trick that can get rid of all these annoying `&`s. Partial credit to @Arnauld as I did not think of the string indexing trick. \[I really need to improve my critical thinking skills.\]

## How does it work?

Nothing really complex, unlike in some of my more complex answers. Really just checking to see if the length is incorrect. This is done by performing an XOR (the bitwise equivalent of `!=` which saves one byte) against the character at `n[0]` of  `23455432` \[the first element is at least 1, so no worries about selecting the space\].

We also check if, for some element in `n`, that either it is outside the required bounds. This saved 1 byte as some is 1 byte shorter than every.

Returns `0` for valid and a positive integer for invalid. If I **must** return a boolean, please let me know, and I will change the XOR to a `&&`.
> 4 votes

# Answer
# Charcoal, ~~39~~ 33 bytes

```
∧⁼ＬθＩ§”)⊟&1x”§θ⁰⬤θ⎇‹κ²⁼﹪ι⁸ι‹↔ι⁻⁶κ

```

Try it online! Link is to verbose version of code. 0-indexed. Outputs a Charcoal boolean, i.e. `-` for valid, nothing for invalid. Explanation:

```
∧⁼ＬθＩ§”)⊟&1x”§θ⁰

```

Check that the number of elements is correct, and...

```
⬤θ⎇‹κ²⁼﹪ι⁸ι‹↔ι⁻⁶κ

```

... that the first two elements are from 0 to 7, and the remaining elements are within the desired absolute range.
> 3 votes

# Answer
# JavaScript (ES6), 53 bytes

```
a=>a.some(x=>i++<0?x&~7:x*x>15-i*4,i=-2)|(a[0]^i)%7|a

```

Try it online!

Some ideas are based on Arnauld's and ophact's answer, some how.

-3 bytes by Arnauld.

Take input as an array. First 2 dimension are 0-indexed. Output falsy (zero) for valid Dimensional Chess position, and truthy (non-zero) otherwise.

The first part `a.some(x=>i++<0?x<0|x>7:x*x>15-i*4,i=-2)` check

1. every digits are in given range
2. given list contains no more than 5 elements

| n-th Dim | `i++<0` | `i` | `15-i*4` | explain |
| --- | --- | --- | --- | --- |
| 0 | true | -1 | N/A | \\$x\<0\lor x\>7\\$ |
| 1 | true | 0 | N/A | \\$x\<0\lor x\>7\\$ |
| 2 | false | 1 | 11 | \\$x\>3 \lor x \< -3\\$ |
| 3 | false | 2 | 7 | \\$x\>2 \lor x \< -2\\$ |
| 4 | false | 3 | 3 | \\$x\>1 \lor x \< -1\\$ |
| 5 | false | 4 | -1 | \\$x^2\>-1\\$ always truthy |

The second part `(a[0]^i)%7` checks if given list has correct length. After first part (if it successfully returned falsy):

| `a[0]` | length | `i` | `a[0]^i` | `(a[0]^i)%7` |
| --- | --- | --- | --- | --- |
| 0 | 2 | 0 | 0 | 0 |
| 1 | 3 | 1 | 0 | 0 |
| 2 | 4 | 2 | 0 | 0 |
| 3 | 5 | 3 | 0 | 0 |
| 4 | 5 | 3 | 7 | 0 |
| 5 | 4 | 2 | 7 | 0 |
| 6 | 3 | 1 | 7 | 0 |
| 7 | 2 | 0 | 7 | 0 |

We can safely assume \\$i\<4\\$ here, since otherwise \\$x^2\>15-4i\\$ already reports the input invalid. And therefore, the length is valid iff `(a[0]^i)%7` is `0`.
> 3 votes

# Answer
# Jelly, ~~28~~ 27 bytes

```
99432D>Aaḣ2>0ƊẠaL’=ị4Rm0¤Ḣ$

```

Try it online!

A monadic link taking a list of integers and returning 1 for true and 0 for false. Uses 1-indexing for the first two dimensions.
> 2 votes

# Answer
# Haskell, 74 bytes

```
do i<-[1..4];z<-mapM id$take i[[1..8],[-3..3],[-2..2],[-1..1]];[i:z,9-i:z]

```

Try it online!

To switch things up a bit, the code above computes the list of all valid positions, 1-indexed.
> 2 votes

# Answer
# , 102 bytes

```
function(x){while(!is.na(a<-x[F<-F+1]))T=T&"if"(F<3,a>0&a<9,abs(a)<7-F);T&sum(x|1)==5.5-abs(x[1]-4.5)}

```

Try it online!

Horribly long, but at last it's working.

Go look at much better @Nick's answer.
> 2 votes

# Answer
# \>= 4.1, ~~77~~ 71 bytes

```
\(x)all(x[1:2]>0,abs(x)<c(9,9,4:2)[1:(l=sum(x|1))],l==c(2:5,5:2)[x[1]])

```

Try it online!

A function taking a vector of integers and returning `TRUE` or `FALSE`. Note on TIO, `\` is substituted by `function` since TIO is currently still running R 3.5.2, but this is functionally identical.

Thanks to @pajonk for saving 6 bytes!
> 2 votes

# Answer
# Stax, 25 bytes

```
ünà<0(↑P⌡◙«VLR¬Θ☺úG▀╓pé▓2

```

Run and debug it

Removed `:b`!

nonzero if truthy, zero if falsy.
> 1 votes

---
Tags: code-golf, number, decision-problem, integer, chess
---


title: Shortest code to throw SIGILL

text:
# Question
Title: Shortest code to throw SIGILL
# Background

We already have a challenge about throwing SIGSEGV, so why not a challenge about throwing SIGILL?

# What is SIGILL?

SIGILL is the signal for an illegal instruction at the processor, which happens very rarely. The default action after receiving SIGILL is terminating the program and writing a core dump. The signal ID of SIGILL is 4. You encounter SIGILL very rarely, and I have absolutely no idea how to generate it in your code except via `sudo kill -s 4 <pid>`.

# Rules

You will have root in your programs, but if you don't want to for any reasons, you may also use a normal user. I'm on a Linux computer with German locale and I do not know the English text which is displayed after catching SIGILL, but I think it's something like 'Illegal instruction'. The shortest program which throws SIGILL wins.

# Answer
# PDP-11 Assembler (UNIX Sixth Edition), 1 byte

```
9

```

Instruction 9 is not a valid instruction on the PDP-11 (in octal, it would be `000011`, which does not appear on the list of instructions (PDF)). The PDP-11 assembler that ships with UNIX Sixth Edition apparently echoes everything it doesn't understand into the file directly; in this case, 9 is a number, so it generates a literal instruction 9. It also has the odd property (unusual in assembly languages nowadays) that files start running from the start, so we don't need any declarations to make the program work.

You can test out the program using this emulator, although you'll have to fight with it somewhat to input the program.

Here's how things end up once you've figured out how to use the filesystem, the editor, the terminal, and similar things that you thought you already knew how to use:

```
% a.out
Illegal instruction -- Core dumped

```

I've confirmed with the documentation that this is a genuine `SIGILL` signal (and it even had the same signal number, 4, all the way back then!)
> 117 votes

# Answer
# C (x86\_64, tcc), 7 bytes

```
main=6;

```

Inspired by this answer.

Try it online!

### How it works

The generated assembly looks like this.

```
    .globl  main
main:
    .long 6

```

Note that TCC doesn't place the defined "function" in a *data* segment.

After compilation, *\_start* will point to *main* as usual. When the resulting program is executed, it expects code in *main* and finds the little-endian(!) 32-bit integer **6**, which is encoded as **0x06 0x00 0x00 0x00**. The first byte – **0x06** – is an invalid opcode, so the program terminates with *SIGILL*.

---

# C (x86\_64, gcc), 13 bytes

```
const main=6;

```

Try it online!

### How it works

Without the *const* modifier, the generated assembly looks like this.

```
    .globl  main
    .data
main:
    .long   6
    .section    .note.GNU-stack,"",@progbits

```

GCC's linker treats the last line as a hint that the generated object does not require an executable stack. Since *main* is explicitly placed in a *data* section, the opcode it contains isn't executable, so the program terminates will *SIGSEGV* (segmentation fault).

Removing either the second or the last line will make the generated executable work as intended. The last line could be ignored with the compiler flag `-zexecstack` (Try it online!), but this costs **12 bytes**.

A shorter alternative is to declare *main* with the *const* modifier, resulting in the following assembly.

```
        .globl  main
        .section    .rodata
main:
        .long   6
        .section    .note.GNU-stack,"",@progbits

```

This works without any compiler flags. Note that `main=6;` would write the defined "function" in *data*, but the *const* modifier makes GCC write it in *rodata* instead, which (at least on my platform) is allowed to contain code.
> 90 votes

# Answer
# Swift, 5 bytes

```
[][0]

```

Access index 0 of an empty array. This calls `fatalError()`, which prints an error message and crashes with a SIGILL. You can try it here.
> 47 votes

# Answer
# GNU C, 25 bytes

```
main(){__builtin_trap();}

```

GNU C (a specific dialect of C with extensions) contains an instruction to crash the program intentionally. The exact implementation varies from version to version, but often the developers make an attempt to implement the crash as cheaply as possible, which normally involves the use of an illegal instruction.

The specific version I used to test is `gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0`; however, this program causes a SIGILL on a fairly wide range of platfoms, and thus is fairly portable. Additionally, it does it via actually executing an illegal instruction. Here's the assembly code that the above compiles into with default optimization settings:

```
main:
    pushq %rbp
    movq %rsp, %rbp
    ud2

```

`ud2` is an instruction that Intel guarantees will always remain undefined.
> 28 votes

# Answer
# C (x86\_64), 11, 30, 34, or 34+15 = 49 bytes

```
main[]="/";

```

```
c=6;main(){((void(*)())&c)();}

```

```
main(){int c=6;((void(*)())&c)();}

```

I've submitted a couple of solutions that use library functions to throw `SIGILL` via various means, but arguably that's cheating, in that the library function solves the problem. Here's a range of solutions that use no library functions, and make varying assumptions about where the operating system is willing to let you execute non-executable code. (The constants here are chosen for x86\_64, but you could change them to get working solutions for most other processors that have illegal instructions.)

`06` is the lowest-numbered byte of machine code that does not correspond to a defined instruction on an x86\_64 processor. So all we have to do is execute it. (Alternatively, `2F` is also undefined, and corresponds to a single printable ASCII character.) Neither of these are guaranteed to always be undefined, but they aren't defined as of today.

The first program here executes `2F` from the read-only data segment. Most linkers aren't capable of producing a working jump from `.text` to `.rodata` (or their OS's equivalent) as it's not something that would ever be useful in a correctly segmented program; I haven't found an operating system on which this works yet. You'd also have to allow for the fact that many compilers want the string in question to be a wide string, which would require an additional `L`; I'm assuming that any operating system that this works on has a fairly outdated view of things, and thus is building for a pre-C94 standard by default. It's possible that there's nowhere this program works, but it's also possible that there's somewhere this program works, and thus I'm listing it in this collection of more-dubious-to-less-dubious potential answers. (After I posted this answer, Dennis also mentioned the possibility `main[]={6}` in chat, which is the same length, and which doesn't run into problems with character width, and even hinted at the potential for `main=6`; I can't reasonably claim these answers as mine, as I didn't think of them myself.)

The second program here executes `06` from the read-write data segment. On most operating systems this will cause a segmentation fault, because writable data segments are considered to be a bad design flaw that makes exploits likely. This hasn't always been the case, though, so it probably works on a sufficiently old version of Linux, but I can't easily test it.

The third program executes `06` from the stack. Again, this causes a segmentation fault nowadays, because the stack is normally classified as nonwritable for security reasons. The linker documentation I've seen heavily implies that it used to be legal to execute from the stack (unlike the preceding two cases, doing so is occasionally useful), so although I can't test it, I'm pretty sure there's some version of Linux (and probably other operating systems) on which this works.

Finally, if you give `-Wl,-z,execstack` (15 byte penalty) to `gcc` (if using GNU `ld` as part of the backend), it will explicitly turn off executable stack protection, allowing the third program to work and give an illegal operation signal as expected. I *have* tested and verified this 49-byte version to work. (Dennis mentions in chat that this option apparently works with `main=6`, which would give a score of 6+15. I'm pretty surprised that this works, given that the 6 blatantly isn't on the stack; the link option apparently does more than its name suggests.)
> 25 votes

# Answer
## Bash on Raspbian on QEMU, 4 (1?) bytes

Not my work. I merely report the work of another. I'm not even in a position to test the claim. Since a crucial part of this challenge seems to be finding an environment where this signal will be raised and caught, I'm not including the size of QEMU, Raspbian, or bash.

On Feb 27, 2013 8:49 pm, user emlhalac reported "Getting 'illegal instruction' when trying to chroot" on the Raspberry Pi fora.

```
ping

```

producing

```
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction (core dumped)

```

I imagine much shorter commands will produce this output, for instance, `tr`.

EDIT: Based on @fluffy's comment, reduced the conjectured lower bound on input length to "1?".
> 22 votes

# Answer
# GNU as (x86\_64), 3 bytes

```
ud2

```

---

$ xxd sigill.S

```
00000000: 7564 32                                  ud2

```

$ as --64 sigill.S -o sigill.o ; ld -S sigill.o -o sigill

```
sigill.S: Assembler messages:
sigill.S: Warning: end of file not at end of a line; newline inserted
ld: warning: cannot find entry symbol _start; defaulting to 0000000000400078

```

$ ./sigill

```
Illegal instruction

```

$ objdump -d sigill

```
sigill:     file format elf64-x86-64

Disassembly of section .text:

0000000000400078 <__bss_start-0x200002>:>
  400078:       0f 0b                   ud2

```
> 22 votes

# Answer
# x86 MS-DOS COM file, 2 bytes

**EDIT:** As pointed out in the comments, DOS itself will not trap the CPU exception and will simply hang (not just the app, the entire OS). Running on a 32-bit NT-based OS such as Windows XP will, indeed, trigger an illegal instruction signal.

```
0F 0B

```

From the documentation:

> Generates an invalid opcode. This instruction is provided for software testing to explicitly generate an invalid opcode.

Which is pretty self-explanatory. Save as a .com file, and run in any DOS emulator DOS emulators will just crash. Run on Windows XP, Vista, or 7 32-bit.
> 19 votes

# Answer
# C (32-bit Windows), 34 bytes

```
f(i){(&i)[-1]-=9;}main(){f(2831);}

```

This only works if compiling without optimizations (else, the illegal code in the `f` function is "optimized out").

Disassembly of the `main` function looks like this:

```
68 0f 0b 00 00    push 0b0f
e8 a1 d3 ff ff    call _f
...

```

We can see that it uses a `push` instruction with a literal value `0b0f` (little-endian, so its bytes are swapped). The `call` instruction pushes a return address (of the `...` instruction), which is situated on the stack near the parameter of the function. By using a `[-1]` displacement, the function overrides the return address so it points 9 bytes earlier, where the bytes `0f 0b` are.

These bytes cause an "undefined instruction" exception, as designed.
> 14 votes

# Answer
# Java, ~~50~~ ~~43~~ 24 bytes

```
a->a.exec("kill -4 $$");

```

This is a `java.util.function.Consumer<Runtime>`1 whose command is stolen from fluffy's answer. It works because you *must* call it as `whateverNameYouGiveIt.accept(Runtime.getRuntime())`!

Note that this will create a new process and make it throw a SIGILL rather than throwing a SIGILL itself.

1 - Technically, it can also be a `java.util.function.Function<Runtime, Process>` because `Runtime#exec(String)` returns a `java.lang.Process` which can be used to control the process you just created by executing a shell command.

---

For the sake of doing something more impressive in such a verbose language, here's a ~~72~~ ~~60~~ 48-byte bonus:

```
a->for(int b=0;;b++)a.exec("sudo kill -s 4 "+b);

```

This one is another `Consumer<Runtime>` that goes through ALL processes (including itself), making each of them throw a SIGILL. Better brace for a violent crash.

---

And another bonus (a `Consumer<ANYTHING_GOES>`), which at least *pretends* to throw a SIGILL in 20 bytes:

```
a->System.exit(132);

```
> 13 votes

# Answer
# Perl, 9 bytes

```
kill+4,$$

```

Simply calls the appropriate library function for signalling a process, and gets the program to signal itself with `SIGILL`. No actual illegal instructions are involved here, but it produces the appropriate result. (I think this makes the challenge fairly cheap, but if anything's allowed, this is the loophole you'd use…)
> 11 votes

# Answer
# ARM Unified Assembler Language (UAL), 3 bytes

```
nop

```

For example:

```
$ as ill.s -o ill.o
$ ld ill.o -o ill
ld: warning: cannot find entry symbol _start; defaulting to 00010054
$ ./ill
Illegal instruction

```

After executing `nop`, the processor interprets the `.ARM.attributes` section as code and encounters an illegal instruction somewhere there:

```
$ objdump -D ill

ill:     file format elf32-littlearm

Disassembly of section .text:

00010054 <__bss_end__-0x10004>:
   10054:       e1a00000        nop                     ; (mov r0, r0)

Disassembly of section .ARM.attributes:

00000000 <.ARM.attributes>:
   0:   00001341        andeq   r1, r0, r1, asr #6
   4:   61656100        cmnvs   r5, r0, lsl #2
   8:   01006962        tsteq   r0, r2, ror #18
   c:   00000009        andeq   r0, r0, r9
  10:   01080106        tsteq   r8, r6, lsl #2

```

Tested on a Raspberry Pi 3.
> 9 votes

# Answer
# Microsoft C (Visual Studio 2005 onwards), 16 bytes

```
main(){__ud2();}

```

I can't easily test this, but according to the documentation it should produce an illegal instruction by intentionally trying to execute a kernel-only instruction from a user-mode program. (Note that because the illegal instruction crashes the program, we don't have to try to return from `main`, meaning that this K&R-style `main` function is valid. Visual Studio never having moved on from C89 is normally a bad thing, but it came in useful here.)
> 8 votes

# Answer
# Ruby, 13 bytes

```
`kill -4 #$$`

```

I guess it's safe to assume that we are running this from a \*nix shell. The backtick literals runs the given shell command. `$$` is the running Ruby process, and the `#` is for string interpolation.

---

Without calling the shell directly:

# Ruby, 17 bytes

```
Process.kill 4,$$

```
> 7 votes

# Answer
# ELF + x86 machine code, 45 bytes

This should be the smallest executable program on an Unix machine that throws SIGILL (due to Linux not recognizing the executable if made any smaller).

Compile with `nasm -f bin -o a.out tiny_sigill.asm`, tested on an x64 virtual machine.

Actual 45 bytes binary:

```
0000000 457f 464c 0001 0000 0000 0000 0000 0001

0000020 0002 0003 0020 0001 0020 0001 0004 0000

0000040 0b0f c031 cd40 0080 0034 0020 0001

```

Assembly listing (see source below):

```
;tiny_sigill.asm
BITS 32

            org     0x00010000

            db      0x7F, "ELF"             ; e_ident
            dd      1                                       ; p_type
            dd      0                                       ; p_offset
            dd      $$                                      ; p_vaddr
            dw      2                       ; e_type        ; p_paddr
            dw      3                       ; e_machine
            dd      _start                  ; e_version     ; p_filesz
            dd      _start                  ; e_entry       ; p_memsz
            dd      4                       ; e_phoff       ; p_flags

_start:
                ud2                             ; e_shoff       ; p_align
                xor     eax, eax
                inc     eax                     ; e_flags
                int     0x80
                db      0
                dw      0x34                    ; e_ehsize
                dw      0x20                    ; e_phentsize
                db      1                       ; e_phnum
                                                ; e_shentsize
                                                ; e_shnum
                                                ; e_shstrndx

  filesize      equ     $ - $$

```

Disclaimer: code from the following tutorial on writing the smallest assembly program to return a number, but using opcode ud2 instead of mov: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
> 7 votes

# Answer
# AutoIt, 93 bytes

Using flatassembler inline assembly:

```
#include<AssembleIt.au3>
Func W()
_("use32")
_("ud2")
_("ret")
EndFunc
_AssembleIt("int","W")

```

When run in SciTE interactive mode, it'll crash immediately. The Windows debugger should popup for a fraction of a second. The console output will be something like this:

```
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
0x0F0BC3
!>14:27:09 AutoIt3.exe ended.rc:-1073741795

```

Where `-1073741795` is the undefined error code thrown by the WinAPI. This can be any negative number.

Similar using my own assembler LASM:

```
#include<LASM.au3>
$_=LASM_ASMToMemory("ud2"&@CRLF&"ret 16")
LASM_CallMemory($_,0,0,0,0)

```
> 6 votes

# Answer
# Any shell (sh, bash, csh, etc.), any POSIX (10 bytes)

Trivial answer but I hadn't seen anyone post it.

```
kill -4 $$

```

Just sends SIGILL to the current process. Example output on OSX:

```
bash-3.2$ kill -4 $$
Illegal instruction: 4

```
> 6 votes

# Answer
# Python, 32 bytes

```
from os import*;kill(getpid(),4)

```
> 5 votes

# Answer
# NASM, 25 bytes

I don't know how this works, just that it does on my computer specifically (Linux x86\_64).

```
global start
start:
jmp 0

```

Compile & run like:

```
$ nasm -f elf64 ill.asm && ld ill.o && ./a.out
ld: warning: cannot find entry symbol _start; defaulting to 0000000000400080
Illegal instruction

```
> 5 votes

# Answer
# TI-83 Hex Assembly, 2 bytes

```
PROGRAM:I
:AsmPrgmED77

```

Run as `Asm(prgmI)`. Executes the illegal 0xed77 opcode. I count each pair of hex digits as one byte.
> 5 votes

# Answer
# Linux shell, 9 bytes

```
kill -4 0

```

Sends `SIGILL` to the process with PID 0. I don't know what process has PID 0, but it always exists.

Try it online!
> 4 votes

# Answer
# x86 .COM, 1 byte

```
c

```

`ARPL` causes `#UD` in 16-bit mode
> 4 votes

# Answer
# Rust, 53 bytes

```
fn main(){unsafe{std::hint::unreachable_unchecked()}}

```

This piece of code generates no `main` function because main is marked as unreached, hence SIGILL being triggered when run. Try it online!
> 4 votes

# Answer
# GNU C, ~~24~~ ~~19~~ 18 bytes

-4 thanks to Dennis
-1 thanks to ceilingcat

```
main(){goto*&"'";}

```

Try it online! This assumes ASCII and x86\_64. It attempts to run the machine code `27`, which ... is illegal.

---

# shortC, ~~10~~ ~~5~~ 4 bytes

```
AV"'

```

Equivalent to the GNU C code above. Try it online!
> 2 votes

# Answer
# MachineCode on x86\_64, ~~2~~ 1 bytes

```
7

```

Try it online!

Simply calls the x86\_64 instruction `0x07` (ceilingcat suggested 0x07 instead of 0x27)
> 2 votes

# Answer
# MMIXAL, 13 bytes

`Main RESUME 2`

`RESUME` is legal in all code; `RESUME 1` throws a protection violation in user mode; any other argument throws an illegal instruction violation.
> 1 votes

---
Tags: code-golf
---


# Question
Title: Sr. 4Der says make this shape! (Episode 1)
> Dialogue by a 3Der.

I was hired by Sr. 4Der to learn the 4D universe and I was willing to get to know more about it. But since I am a 3Der, I wouldn't see him, nor would I know how the real shapes look like. All I can do is illustrate.

Sr. 4Der is pretty much invisible to us. We can't see him, but we can hear his voice. Certainly, he would give us a task for each and one of us.

So I was employed as "Programmer", and the task is to illustrate 4D shapes by the use of ASCII art, and I came up with a design for a tesseract.

```
       ############################
      ####                       ####
     # #  ##                    # #  ##
    #  #    ##                 #  #    ##
   #   #      ##              #   #      ##
  #    #        ##           #    #        ##
 #     #          ###       #     #          ###
############################      #             ##
###    #              ###  ###    #               ###
#  ##  #                 ###  ##  #                  ##
#    ###                   ##   ###                    ##
#      ##                  # ##   ##                     ##
#      # ##                #   ## # ##                     ##
#      #######################################################
#     # ##    ##           #     ####    ##                 ##
#    #    ##    ###        #    # #  ##    ###             # #
#   #       ##     ##      #   #  #    ##     ##          #  #
#  #          ##     ##    #  #   #      ##     ##       #   #
# #             ##     ##  # #    #        ##     ##    #    #
##                ###    ####     #          ###    ## #     #
#######################################################      #
 ##                    ### ###    #               ### #      #
   ##                     ##  ##  #                  ##      #
     ##                    ###  ###                   ###    #
       ##                  #  ##  ##                  #  ##  #
         ###               #    ### ##                #    ###
            ##             #      ############################
              ###          #     #       ##           #     #
                 ##        #    #          ###        #    #
                   ##      #   #              ##      #   #
                     ##    #  #                 ##    #  #
                       ##  # #                    ##  # #
                         ####                       ####
                           ############################

```

And after bringing it to the office of our boss, he called on us and we listened the words.

> Dear programmers, attention all. I have found a design by \[say name here\] of a tesseract and I would like every one of you to try and make a program to output the same outline.

A co-worker of mine then said:

> Does it have to be only `#` or another character?

He replied:

> Use the character you want to use. Use only one, then print the tesseract with the same character, over and over. Understood?

He nodded and we did our thing. Some did input, some just did the basic, and more. After our hard work, he congratulates us and the day has finished.

Now that I think about it, maybe it's your turn to make the same tesseract.

# Objective

* Given the code block representing the tesseract, replicate the outline with any `char` you want to use.
* Do not change the type of tesseract to be made. Keep the same shape and the final output should be the same one in the code block. (Replace the `#` with what you want, but only a single ASCII character that is not a space)
* This is a challenge, so the program with the smallest amount of bytes wins!

## Bonus Objective (Not needed to complete the challenge)

* Make a program where the user gives a `char` input and will be used to output the tesseract outline using the same character. Rules from the original objective is still applied.

# Answer
> 9 votes
# JavaScript (Node.js), 428 bytes

Uses `0` instead of `#`.

```
_=>Buffer('QaV6:)R/rEkQy|:|\\!8GG6Pzy}lO<:xv-q,GoKfhfkci;Br"? &]N9Xx[}~tvc1Z6;%Fq6>DO(9dGs&sG~n@z},=x7]+Qo4y}~8Tr~>45<y#J;_a-^"X=^:?`(8*QQh"GQ.V0>GBpa~ytaJYb^YJdo=/W&59kP#@pZ-pYt-uLLe-lDv/kV|}.ylnY<-$H@G&H{h4PPL%q&7t?1.?t}cI6Fcz-Nvo_wPUPP:Xh|tG0zp)lNIh`Ah-d"t.+0L8&}M6LK.Mr$4rH\'l(x4p4_v|[gdf-~9qo,c{U\\Vw(RCYJrd`^&G[{Tr$PGPkS\'$iaBKm{q').reduce((p,c)=>p*95n+BigInt(c-32),0n).toString(2).match(/.{62}/g).join`
`.split`1`.join` `

```

Try it online!

Not sure if it was intentional but, contrary to appearances, the tesseract is **not** symmetrical.

Storing only the upper part and encoding the differences for the lower part would most certainly be more efficient in some languages, but I didn't find a short enough way to do that in JS.

So this is just a binary to base-95 compression for now.

**Note:** With RegPack, we get 480 bytes. (Not a fully optimized version, but we could only shave a couple of bytes.)

# Answer
> 8 votes
# Ruby, ~~252~~ 247 bytes

```
->{r=s=(' '*62+$/)*34
32.times{|i|s[[7,826,853,1672][i/8]+i%8*62,28]="##{(i%8%7<1??#:' ')*26}#"}
96.times{|j|s[q=[70,97,504,531][j/12%4]-603*(k=j/48)+(m=j%12)*63*z=1-k*2]=?#
m<1&&r=1-k
s[q+r-k*t=80>>m-(79>>j/12&1)&1|2,t]=?#*t
r+=z*t
j==5&&r-=1}
s}

```

Try it online!

The horizontal, vertical and short diagonal lines are fairly straightforward. The long diagonals are more problematic: the two triple `#` sections are not always in the same place, and the top left long diagonal actually contains a single `#`. It's difficult to see because it's where it crosses the horizontal line.)

**Commented code - original version**

```
->{r=s=(' '*62+$/)*34                             #Make a string s of 34 lines of 62 spaces (also r needs to be initialised to any value to avoid error.)
32.times{|i|s[[7,826,853,1672][i/8]+i%8*62,28]=   #Draw horizontals and short diagonals as space-filled parallelograms.
  "##{(i%8%7<1??#:' ')*26}#"}                     #In ruby syntax #{} can be used to insert expressions into string literals.
96.times{|j|                                      #Iterate through the corners of the top and bottom parallelograms, drawing verticals and long diagonals.
s[q=[70,97,504,531][j/12%4]+(k=j/48)*-603+        #This expression gives the first cell of each. Ruby string indexes wrap around so -603 gives a negative index for the bottom.
  (m=j%12)*63*z= ~0**k]=?#                        #Draw the upper verticals downwards from the top and the lower ones upwards from the bottom using z= ~0**k to give +1 or -1
m<1&&r=1-k                                        #r is the offset of the diagonals from the verticals. if new diagonal (m=j%12)=0, initialise r to to value for downward or upward drawing.
t=80>>m-(79>>j/12&1)&1|2                          #t=80>>m&1|2 gives the value 2 or 3 for the number of # to be drawn on each line. 79>>j/12&1 offsets m to shift the pattern by 1 on some diagonals.
s[q+r-k*t,t]=?#*t                                 #Plot the right number of #. For bottom up (leftward) drawing an adjustment of k*t is required.
r+=z*t                                            #Change r by t, in the correct direction (left or right drawing.)
j==5&&r-=1}                                       #The top left diagonal is drawn odd and needs an adjustment of 1 at a certain point.
s}                                                #Return the string.

```

# Answer
> 8 votes
# Charcoal, ~~111~~ 84 bytes

```
Ｆ⪫⪪”)¶³6ΠＫsv8∨ιm↥Ｓq3iθ¿⁼p[⪪∕¤⁺ＷηＱDσ⁰”9¦87878≡ι3Ｆ”{∨>´↶}⦃α”✳Ｉκ#✳Ｉι×#Ｉ§⪪”)⧴Z/g↑◨M⸿”²Ｉι

```

Try it online! Link is to verbose version of code. Explanation: As @Arnauld points out, the diagram is not quite symmetric; only six of the top left to bottom right lines are the same, and even then they are not mirror images of themselves, although one is a mirror image of the other six. I therefore encoded an Eulerian Cycle using the following integer key:

```
0 Horizontal line of 28 #s (left to right)
1 Diagonal line of 8 #s (bottom left to top right)
2 Vertical line of 13 #s (bottom to top)
3 Diagonal line of 28 #s (bottom right to top left)
4 Horizontal line of 28 #s (right to left)
5 Diagonal line of 8 #s (top right to bottom left)
6 Vertical line of 13 #s (top to bottom)
7 Diagonal line of 2 #s (top left to bottom right)
8 Horizontal line of 2 #s (left to right)
9 Diagonal line of 6 #s (top left to bottom right)

```

The last three are combined to create the three styles of top left to bottom right line. (Note that the `#` counts above assume that the ends of the lines overlap, although the implementation leaves off the last character as the next line will draw it anyway.) The program then consists of a compressed string of coded values and a program to implement each code in turn using a `switch` statement. Edit: Saved 10 bytes by using `9` to substitute for `87878` and a further 17 bytes by creating a table of amounts to draw for each direction.

If the diagram was perfectly symmetric, then it would be possible in only ~~80~~ 60 bytes: Try it online! Link is to verbose version of code.

The above diagram could actually be drawn in a single Charcoal command, although that would (if I have calculated correctly) be 515 bytes (slightly less for the asymmetric version). A highly simplified diagram takes only 67 bytes: Try it online! Link is to verbose version of code. Takes the sizes of the four lines as input. I also implemented an Eulerian Cycle algorithm but for a simplified diagram this still was slightly longer at 74 bytes: Try it online! Link is to verbose version of code. If there's an easily describable Eulerian Cycle then I haven't found it.

# Answer
> 6 votes
# Deadfish~, 2090 bytes

```
{iii}iiccccccci{cc}cccccccc{dd}dddc{ii}iicccccciccccd{cc}cccicccc{dd}dddc{ii}iicccccicdcicdcciccd{cc}icdcicdccicc{dd}dddc{ii}iiccccicdccicdcccciccd{c}cccccccicdccicdccccicc{dd}dddc{ii}iicccicdcccicdcccccciccd{c}ccccicdcccicdccccccicc{dd}dddc{ii}iiccicdccccicdcccccccciccd{c}cicdccccicdccccccccicc{dd}dddc{ii}iicicdcccccicd{c}icccdcccccccicdcccccicd{c}iccc{dd}dddc{ii}iii{cc}ccccccccdccccccicd{c}cccicc{dd}dddc{ii}iiicccdccccicd{c}ccccicccdccicccdccccicd{c}ccccciccc{dd}dddc{ii}iiicdcciccdccicd{c}cccccccicccdcciccdccicd{c}ccccccccicc{dd}dddc{ii}iiicdccccicccd{c}ccccccccciccdcccicccd{cc}icc{dd}dddc{ii}iiicdcccccciccd{c}ccccccccicdciccdccciccd{cc}cicc{dd}dddc{ii}iiicdccccccicdciccd{c}ccccccicdccciccdcicdciccd{cc}cicc{dd}dddc{ii}iiicdcccccci{ccccc}ccccc{dd}dddc{ii}iiicdcccccicdciccdcccciccd{c}cicdccccciccccdcccciccd{c}cccccccicc{dd}dddc{ii}iiicdccccicdcccciccdccccicccdccccccccicdccccicdcicdcciccdccccicccd{c}cccicdcic{dd}dddc{ii}iiicdcccicdccccccciccdccccciccdccccccicdcccicdccicdcccciccdccccciccd{c}icdccic{dd}dddc{ii}iiicdccicd{c}iccdccccciccdccccicdccicdcccicdcccccciccdccccciccdcccccccicdcccic{dd}dddc{ii}iiicdcicd{c}ccciccdccccciccdccicdcicdccccicdcccccccciccdccccciccdccccicdccccic{dd}dddc{ii}iiiccd{c}ccccccicccdcccciccccdcccccicd{c}icccdcccciccdcicdcccccic{dd}dddc{ii}iii{ccccc}cccccdccccccic{dd}dddc{ii}iiciccd{cc}icccdcicccdccccicd{c}cccccicccdcicdccccccic{dd}dddc{ii}iiccciccd{cc}ciccdcciccdccicd{c}cccccccciccdccccccic{dd}dddc{ii}iiccccciccd{cc}icccdccicccd{c}cccccccccicccdccccic{dd}dddc{ii}iiccccccciccd{c}ccccccccicdcciccdcciccd{c}ccccccccicdcciccdccic{dd}dddc{ii}iicccccccccicccd{c}cccccicdccccicccdciccd{c}ccccccicdcccciccc{dd}dddc{ii}ii{c}cciccd{c}cccicdcccccci{cc}cccccccc{dd}dddc{ii}ii{c}ccccicccd{c}icdcccccicdccccccciccd{c}cicdcccccic{dd}dddc{ii}ii{c}ccccccciccdccccccccicdccccicd{c}icccdccccccccicdccccic{dd}dddc{ii}ii{c}ccccccccciccdccccccicdcccicd{c}cccciccdccccccicdcccic{dd}dddc{ii}ii{cc}ciccdccccicdccicd{c}ccccccciccdccccicdccic{dd}dddc{ii}ii{cc}ccciccdccicdcicd{cc}iccdccicdcic{dd}dddc{ii}ii{cc}ccccciccccd{cc}cccicccc{dd}dddc{ii}ii{cc}ccccccci{cc}cccccccc

```

Uses `!` \- it's the closest codepoint to .

Try it online!

Uses an alternative python interpreter since the current deadfish~ interpreter uses recursion and crashes on large programs.

# Answer
> 2 votes
# Vyxal `j`, 274 bytes

```
»-pṄṗ,₄xW(j
ḋ2¡e¤∆⟩⟑REK₁₍Ḟ⟑£FO∧⁰d⁼•⌊⌈⟑4D0Zʀ1⌈ ±E1¹,ε∩ṙ∇rȦİǑ!ȧ∇ḣ[F₀ġṙ←lSṙ₁Ȯ⁺DṄ4¾₄fλ>⅛⋏⌈~□¹₍Fṗ¹↵AǍṄ9⁰∇ǔW3∧q₍ǐ¶ɾzḞṫ⁋↲₴[÷ḟC½†>~!`Ṡ⁽Qτ⋏kAẆ€3∩
G∴:Ḋ½T«□²Ṡ‟/d⟇/√⌈Ẇ£8…A{⁽°q∷¼∪⟑β₂Ṁ-ṡ€Ṗ∩ṫkİṀ∷₴vċ⋎ċ≈⟇ʁ⁽JMXȧṖ⟑yZ∞b.J^⁽Ḣ²‛ŀ4⅛⁽∵„|ṁ↲j←"n₀∴⁋⟑∨Bø"µ~⁰cẇ⋎¬ȯ×Ġǔ↵Ḋjy⟨#İḣA`∆₄]‟y∆,›[LḢ½?Ḋɾ¡½»
‛# τ34/

```

Try it Online!

```
»...»        # Base-255 compressed integer literal
     ‛# τ    # Convert to custom base with key `# `
         34/ # Divide into 34 pieces
             # (j flag) joined by newline.

```

---
Tags: code-golf, ascii-art, kolmogorov-complexity
---


title: Count all possible Tweets

text:
# Question
Title: Count all possible Tweets
# Challenge

This challenge is pretty simple: Output the total number of possible Tweets. Given the fact that \\$1{,}114{,}112\\$ Unicode characters exist, and Tweets can be up to \\$280\\$ characters long, we calculate this number like so:

$$\sum\_{l=1}^{280}1{,}114{,}112^l$$

Calculated, this number becomes:

```
13806352273767118967309446652268353719030666987497438863889357319392349204238070937934701588382252733861344864045882375396168022346806583217340072802259387083359555134466517197703380759356965846365156977627360473773588169473731316369188960207815543356617430699549282184606847903882093344681639583363887920162736670339584230464092411246928128751923029979554646202579157612845521194257627831816510188786486205364038342997992390163377307319320795770580125829871827813635107055402218833285288428245530361070090385299410480471800097379723938710176776857154693492888113262310774952935141264656128106489715644469204223123574077687056241600407855644698999923182052787491366956979702291906138690639325270704272468782453957210692358210530379637285511395582363214078004388847219660731573151720107026864311541883029164798133330444260768597550725802772979408391647537342929574104808498797769614795400908507365237326804077132929339660443550229992211585154931729238484097424201567163596712698594520366545693861474171972272416897768579601352059483077847068448856472837079895280084051348757113747847034093121500403990822456362331568718364029903237356710927604336216180583115812490741333484187646966386074557181286407949971654502112671681454373869734610539296783900783568039838348725239932066066987739369537132033298306852573056479318562759091086979441683964087623025801925326064609304055115943692782207092740008073169526779422072953119459819275895282587278291133892079932466034984180041060600579941010427931676118356402267755461169199685582252347150686196242972686980783271232177904787906691872492956841276422272710260778534487171700075108866361285159161816004238666402986057371469198754307817645454320666214400

```

# Rules

* You may output a float with only zeros after the decimal point.
* Standard loopholes are forbidden.
* Trailing whitespace is allowed.
* If possible, please link to an online interpreter (e.g. TIO) to run your program on.
* Please explain your answer. This is not necessary, but it makes it easier for others to understand.
* Languages newer than the question are allowed. This means you could create your own language where the empty program calculates this number, but don't expect any upvotes.
* This is , so shortest code in bytes wins!

# Answer
> 3 votes
# Jelly, ~~11~~ 10 bytes

```
⁴‘æ«*Ɱ280S

```

Try it online!

-1 byte thanks to Arnauld!

## How it works

```
⁴‘æ«*Ɱ280S - Main link. No arguments
⁴          - Yield 16 and set the argument to 16
 ‘         - Increment to 17
  æ«       - Implicitly using the left argument, bitshift left, yielding 1114112
      280  - Yield 280
     Ɱ     - Over each integer 1 ≤ i ≤ 280:
    *      -   Yield 1114112 to the power i
         S - Sum

```

# Answer
> 54 votes
# Emotion, 17 bytes

```

```

Explanation

```
 Push literal 280
 Enter an iteration block over the first stack value and push the iteration element register at the begining of each loop.
 Push literal 1
 Push the sum of the second and first stack values.
 Push literal 1114112
 Swap the top two stack values.
 Push the first stack value to the power of the second stack value.
 Push the sum of the second and first stack values.
 Ends a control flow structure.

```

Try it online!

# Answer
> 19 votes
# Haskell, 25 bytes

```
div(x^281-x)$x-1
x=8^5*34

```

Try it online!

## Why does it work?

1. \\$8^5\cdot 34=1114112\\$, but 1 byte shorter.
2. \\$\sum\_{l=1}^n x^l=\frac{x^{n+1}-x}{x-1}\\$.

---

# Boring answer, still 25 bytes

```
sum$map(1114112^)[1..280]

```

# Answer
> 7 votes
# Wolfram Language (Mathematica), 21 bytes

```
Tr[1114112^Range@280]

```

Try it online!

-1 byte from @GregMartin

# Answer
> 7 votes
# Ruby, 23 bytes

*-1 byte thanks to @Level River St.*

Based on the formula presented in @Delfad0r's answer.

```
x=17<<16
p x**281/~-x-1

```

Try it online!

### Ruby, 24 bytes

An interesting iterative solution. It uses the fact that `a + a*a + a*a*a...` is equal to `a*(1+a*(1+a*(1+...)))`.

```
p eval'+1114112*x=1'*280

```

Try it online!

# Answer
> 6 votes
# C (gcc), ~~183~~ ~~181~~ ~~167~~ ~~162~~ 161 bytes

*-1 byte ceilingcat*

```
c;d;char s[1695],t[1695];x=281;y=1694;main(z){for(t[y-1]=1;--x;)for(z=y;z--;c/=10,d/=10)s[z]=(d+=s[z]+(t[z]=(c+=t[z]*17<<16)%10))%10;for(;y--;s[y]+=48);puts(s);}

```

Try it online!

# Answer
> 5 votes
# JavaScript (Node.js), 33 bytes

```
f=(n=280n)=>n&&1114112n**n--+f(n)

```

Try it online!

## 29 bytes

Porting @Delfad0r's solution saves 4 bytes:

```
_=>((x=1114112n)**281n-x)/~-x

```

Try it online!

# Answer
> 4 votes
# MATL, 14 bytes

```
16W17*X$280:^s

```

Try it online!

### Explanation

```
16     % Push 16
W      % 2 raised to that
17     % Push 17
*      % Multiply. Gives 1114112
X$     % Convert to symbolic (to achieve arbitrary precision)
280    % Push 280
:      % Range. Gives [1 2 ... 280]
^      % Power, element-wise
s      % Sum. Implicit display

```

# Answer
> 4 votes
# , 20 bytes

```
1#.1114112x^1+i.@280

```

Try it online!

Wasn't able to improve the straightforward answer.

# Answer
> 4 votes
# Factor, ~~38~~ 27 bytes

-11 bytes thanks to Bubbler!

```
1114112 280 [1,b] n^v sum .

```

Try it online!

# Answer
> 4 votes
# Vyxal `sr`, 9 bytes

```
⁺∑ƛ»∆#∆»e

```

Try it Online!

```
⁺∑        # push 280
  ƛ       # Map foreach (1...280)
   »∆#∆»  # Base-255 compressed 1112114
        e # Exponentiation

```

The `s` flag sums the ToS at the end of execution. The `r` flag reverses the order in which functions take their arguments, so you have \\$ 1112114^n\\$ instead of \\$ n^{1112114} \\$.

# Vyxal `s`, 9 bytes

```
»∆#∆»⁺∑ɾe

```

Try it Online!

Thanks to Underslash for this

# Answer
> 3 votes
# dc, 19

```
B14112dd281^r-r1-/p

```

Uses @Delfad0r's sum trick.

Also in dc, `B` = 11, and `B14112` = 1114112.

Try it online!

# Answer
> 3 votes
# 05AB1E, 10 bytes

```
•HYH•Ƶ´LmO

```

Try it online!

Likely Makonede's answer.

Thanks to Kevin's tip on compressing integers in 05AB1E. Make sure you upvote it!

## How it works

```
•HYH•Ƶ´LmO - Program
•HYH•      - Compressed integer: 1114112
     Ƶ´    - Compressed integer: 280
       L   - Range [1, 2, ..., 280]
        m  - Raise 1114112 to the power of each
         O - Sum

```

# Answer
> 3 votes
# Pyth, 14 bytes(?)

```
s^LhC\S280
```

Try it here!

Pyth supposedly uses an SBCS, but I can't find any details about its actual codepage.

The reason I have my doubts about the byte count is that the code contains a character with codepoint 1114111, which certainly isn't normally represented in a single byte (and I VERY much doubt is in Pyth's code page). The code is 11 *characters* long, and Pyth reports the mystery character as taking 4 bytes. However, the interpreter reports a length of 12, and the number 1114111 takes 3 bytes. In short, 11, 12, 13, and 14 are all possible byte counts for this program.

I've chosen 14, as its the most likely (since, again, Pyth says the character is 4 bytes).

# Answer
> 3 votes
# Bash, 27 bytes

```
seq -f1114112^%g -s+ 280|bc

```

Try it online!

# Answer
> 2 votes
# Scala, ~~47~~ 44 bytes

Corrected answer *and* saved 3 bytes thanks to @mik!

```
()=>{val x=17<<16:BigInt;x.pow(281)/(x-1)-1}

```

Try it in Scastie!

Not particularly short, but it uses the simplification of the sum to avoid all the exponentiation + summation, unlike the other answers.

# Answer
> 2 votes
# Icon, ~~59~~ 49 bytes

* 10 bytes thanks to mik!

```
procedure main();write(1114112^281/1114111-1);end

```

Try it online!

## Original solution, 59 bytes:

```
procedure main()
t:=0
t+:=1114112^(1to 280)&\z
write(t)
end

```

Try it online!

# Answer
> 2 votes
# PowerShell, 44 bytes

```
1..280|%{$k+="[bigint]1114112*"*$_+1|iex};$k

```

Try it online!

**-18 bytes thanks to @ZaelinGoodman**

# Powershell v7, 37 bytes, thanks to @mazzy

```
1..280|%{$k+="1114112n*"*$_+1|iex};$k

```

# Answer
> 2 votes
# Deadfish~, 8398 bytes

```
{i}dds{i}dsiis{{{i}i}iiii}iiiis{{{{{{ii}iiii}iiiii}iii}i}ddi}dds{{{{{{{{{{{{{i}ddi}di}ddi}dddi}ddi}d}i}iiii}i}ii}ddd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{{{{{{{{{{{{{{{{{{{{{{{{{{{{{i}dd}i}iii}d}iii}ddi}d}iii}d}iiiiii}iii}iiiii}ddd}iiii}dd}ii}iiii}}iiiiiii}ddd}iiii}iiiiii}i}iii}iiiiii}di}dd}iiiiii}d}iii}iii}iii}iiiiii}iiiiii}d}i}iiiiiii}dd}ii}iii}iiiii}ddi}ddi}d}i}iiii}iiiiii}iiii}iiii}iiiii}ii}ddd}i}iiiiii}ii}iiii}i}iiii}iii}iiiii}iii}di}d}ii}dddi}di}di}dd}iiiii}d}i}iiiiii}iiiii}di}d}}ii}ddi}ddi}ddd}ii}iii}d}i}iii}ddd}}iiiii}iiiiii}ii}}iiiiiii}d}iiii}iiiiii}iii}}iiii}dd}iiii}ddi}dddi}ddi}d}iii}iiii}iiii}ii}iiii}dd}i}}i}ddd}ii}ddd}ii}iiii}dd}iii}i}ii}iii}ii}ii}iiiii}iiiiii}}i}ii}ddd}}iiiii}d}iiiiiii}dddi}ddi}ddd}i}iiiii}iiiii}iiiiii}iii}ddd}}i}d}iiiii}iiiii}i}iii}d}i}iiiii}iiiiiii}d}iii}iii}di}dd}iiiii}iiiii}iii}iiii}dd}iiii}ddi}dd}ii}iiii}iii}iiiii}iiii}dddi}di}ddi}dddi}ddd}iiiiii}dd}ii}iiii}iiiiii}iiii}iiii}}ii}ddi}ddi}dddi}dddi}ddd}iiiiii}iiiiii}iiii}ii}dddi}dd}ii}dd}ii}iii}iiii}iiiiii}ddd}}iiii}ii}dddi}ddd}iii}is{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{iiiii}iiiiii}d}iiii}i}ddd}i}iiii}dd}iii}ddd}ii}i}ddi}dd}iiii}iiiii}iiiiii}ii}iiiii}iiiii}i}d}iiiii}iiii}iiiiii}}iiiii}iiiii}dd}iiii}iiiii}di}dd}iiiii}ddd}iii}di}dd}ii}iii}ii}iiii}iiiiii}}iiiiiii}ddd}}iii}}i}iiiiii}ddd}}iiiii}i}iiiiii}d}ii}ii}iii}dd}ii}iiiii}iiiii}iiiii}ii}iiii}iiiiii}iii}}iiiiii}iiiiii}}iiii}iiiii}iiiii}i}i}d}i}i}i}iiii}ddd}iiiii}iii}ii}iiii}iii}dd}iiiiii}iii}i}iiiii}dd}ii}dd}}ii}iii}ii}iiiiii}iiiiii}i}ii}ddi}d}}ii}i}iiiiii}iiii}iiiiiii}d}iiiii}iiiii}iii}i}dddi}dddi}ddd}iii}d}iiiii}dddi}d}iiiii}iii}ddi}ddi}d}ii}di}ddd}iiii}iiiii}i}dd}ii}iiii}iii}iiiii}ii}iii}dddi}dd}iiiiii}dd}iiii}iiii}ddd}iii}ii}ii}iii}iiiiii}ddd}}iii}iiiiiii}dddi}di}d}iiiiii}d}iii}ddd}ii}iii}}i}iiiiii}}ii}}i}iiii}iii}iiiii}ii}}iiii}iiiiii}i}}iii}iiiiii}}iiii}iii}iii}iiiiii}}iiiii}i}iiiiii}dd}iii}ddd}iii}iiiii}iiiii}iiiii}i}iiiiii}i}di}dddi}d}ii}iii}dd}iiiii}iiiii}iiii}ddd}iii}iii}i}ddi}dd}iiiii}}iii}i}iiii}ii}iii}iiiiiii}dd}iii}ii}i}d}iiiiii}dd}iiii}}iiiiii}d}}ii}iiiiii}i}dddi}dd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}i}iii}ddi}ddd}iiii}d}i}iiiiii}dd}iiiiiii}dddi}d}iiii}i}iiii}d}i}ii}iii}d}}ii}iii}i}iiiiiii}dddi}ddi}ddd}i}iiiii}iiii}i}iii}iiiii}}iiiiii}d}iiii}}iiiiii}dd}iiii}d}i}iiii}i}ii}iiiiii}i}i}iiiiiii}di}ddd}iiii}iii}}iiii}ddi}di}ddd}iiiii}iii}ddi}dd}iiiiii}iiii}iii}iiii}ddd}iiii}iii}iiiiii}iiii}iiii}d}iiiiiii}ddd}iii}iiii}ddi}di}dd}i}d}iiiiii}iiiii}iiiii}dd}iii}iiii}i}ii}ddd}}iiiiii}dddi}ddd}iii}iiii}iiiiiii}d}iiiii}iiiiii}iii}iii}iiiii}dd}iiiii}iiiii}iiiiii}i}dddi}ddd}iiiiiii}ddd}iiii}ii}i}iii}iii}iiii}iiiii}ii}ii}ii}ddd}ii}iiiiii}di}dd}iiii}dd}iiii}iiiii}iiiiii}iiiii}iiiii}ddi}d}iiii}iiii}ii}iii}i}iiiiii}iii}}i}iiiii}iiii}d}i}iiiiii}iiiii}dddi}dd}iii}iii}di}d}iii}iiiii}dd}i}ddd}iiiiii}iiii}dddi}ddd}}iii}iii}ii}i}ddi}ddd}ii}dd}i}}iiiiii}dd}}iiii}ii}dddi}ddd}i}iii}i}iiiii}ddd}ii}dd}iiii}}i}iiiiii}ii}}iiiiii}dddi}d}ii}ii}iiii}iiiiii}i}ddd}iiiiii}iiiiiii}dd}i}iiiiii}iii}iiiiii}iiii}ddd}iiii}iiiiii}dddi}ddd}iiii}iiii}ii}i}ii}iii}ii}iiiiii}d}iiiiiii}di}ddi}ddi}dddi}dddi}d}iii}dd}iiiiiii}di}dd}iiiiii}iiiii}ddi}di}dd}i}iiiii}iiiiii}}iiiii}d}ii}ii}d}iii}iiii}ddd}iiiiii}i}}i}di}di}d}ii}ddd}ii}iii}dd}iiiiii}iiiii}d}iiiiiii}d}iii}ii}d}ii}iiiii}dd}}iiii}iii}iiii}ddd}iiiiii}iiii}iiiii}iiiii}ii}ii}iiiii}i}ddd}iiiii}iii}ii}iiiii}iii}iiiii}}}iii}iiiiii}}ii}}iiiiii}dd}iiiiii}ii}ii}i}iiiii}di}ddd}iiii}d}iiiiiii}ddi}ddd}iii}ddd}iiiiiii}di}ddd}ii}ddd}iiii}dd}}iii}iiiii}dd}iii}}iiiii}dd}ii}iiiii}}ii}ddd}ii}dd}iiiii}ddd}iiii}dd}i}i}iiiiii}i}i}iiiiii}di}d}iii}iii}iiiii}d}iiiiiii}dd}iii}iiiii}iiiii}di}d}iiiii}ddi}dddi}di}d}ii}i}}iiii}ii}iiiiii}ddd}i}i}iiiiii}iiiii}iii}iiiii}dd}iiiii}i}iiii}iiii}iiiiii}iiii}iii}ii}iiiii}dd}i}}iii}ii}iii}dd}ii}dd}iiiii}iii}iiii}iiiii}ii}d}iiiiiii}dd}iii}ii}ddi}d}iiiiii}d}i}ii}i}dddi}dd}iiiii}i}i}ddi}ddi}ddd}}iiii}ddd}iiii}iiiii}i}ii}ddd}iiiiii}iiii}iii}iiiii}}iiiii}dd}}iii}dd}ii}iiiii}ii}iii}ii}}iiiiii}i}iiii}iiiii}d}iiii}iiii}iiiiiii}ddd}iii}d}iii}ii}iii}iiiiii}i}i}iiiiii}ii}dd}iiiii}iii}ddd}iiii}iii}ii}iiii}iiiii}iiiiii}iiii}iii}i}iii}ddd}i}iiiii}dddi}ddi}ddi}ddd}ii}iiiiii}}i}i}i}iiii}}i}dddi}d}iii}ii}iiiiii}i}}iiiiiii}dddi}dd}i}i}iiiii}}iii}di}dd}iiiii}dd}i}iii}i}iiii}i}i}iiii}d}iii}dd}ii}iiii}ddd}}i}dd}iiiiii}dd}i}ddd}i}iiiiii}iiiii}i}ddi}di}d}i}iiiiiii}dd}iiiii}d}iiiiii}ii}iiiiiii}ddd}iiiiii}d}iii}ddd}iii}i}dd}i}di}dd}iiiiii}ddd}i}iiiiii}ddd}iiiiii}}iii}i}dd}i}ii}ii}d}iiiii}iiiii}ii}ddd}}}}ii}ii}}iii}i}i}}iiii}iiiii}d}ii}iiiiiii}dd}i}ddi}dd}iiiii}i}dd}iiiiii}iiiii}d}iiiii}dd}ii}iiii}ii}i}i}iiiiiii}di}dd}iiiii}ii}iiii}i}iiiiii}iiiiii}iii}ddd}}i}ddd}iiiiiii}d}iiii}iiii}dd}iii}iii}ii}ddd}iiiiiii}ddi}d}i}iiiii}iiiii}di}ddi}dd}}iiii}dd}ii}iiiiiii}dd}}ii}iiiii}d}ii}d}iiiii}iiiii}ddi}ddd}iiiiiii}dd}}iiiiii}ii}i}ddd}iiiii}iiiiii}do

```

Disclaimer: This crashes TIO. calculates then outputs the number.

# Deadfish / Deadfish~, 6536 bytes

```
iiosdoddddddddoiisiiodddoiiodddoosiiioddddosddodoioddddddooiisdoiodddoioddddodddoiiisodddddooiioododddoosiioiiodddddoiioddosddoddddddoiisodddddddddoiiiodddoiisiioooiiiodododddodsoddodddodosdooddodddosdooioddddddoiioiioddddoddoiisoddddddosodddddddoioiodsodddddddoddoiisoddoiosdoddddddddoiisiiiodddddddoiiisoddddddosddoiioddddddoioiiiodddddddoioisioiiioodddddosdoddddddoosiodddosiiioddddoosdoddodddddoiioioodsdoddoddoddddoiisoioiiiooddddddoiosddoddoddosodddodddddoisiioiioddddddddoiiooioioiioiioddddddddoiisiiodoiiiodddddododoisiiioddddoioddddooiisiiiodddddoisdoddddddddoiioosioddsoddddddosdododddddddoiiisdodddddooiioddsoddddoooddddoiioiooiioododdddoisiiioddddddoiisoddoodddddddoiiioosdoddddddddoiisiiioddoddsoddddddoiioioiiiodddodoiiioddddoiiodddoiiiododdddoisioioiiioddoododdddosiiioddddoiiioddddddoiisoiiioddddosddooddddoiioiiioodddddddoisiioiiiodddddoiiioddddosddoddddoddoiioddoisiiodddoiiioiiioddddddddoiisdooiodddoddddddoiioddoiisiiioiodddddddoisioododooiioioodddddoisiiiodddododddoiisiioiiiooddddododsodddddddoisdoddddddodoiisdoddddoiioddddddoiisiioiioddddoiiioiiodddddddddoiiiosdooddddddoddoiiisoddddddooiooiioiiodddddddoisiiodddosoddddoiiiodddddooiiiodddosdoodoiiodddddddoddoioisiioddddosiiioddddoiiiooiodddddddoiiioosoddddoiiioddddoddoiodddoiisoiioddoddddoiiisodddddddosodddooiosoiioiiiodddddddoisdodddddddoioisdododdoddddoiisodddddddoiodddoiioisooddoiioddddoodoiioddoiioddddoddoiiosioiioiioddddddddoisioiiododddddoioisdoddddoioodddodooiisodddddoddosioiiododdddosiiioiodddddoddoiisdodddddddoisiiododdddodoioiisdoodoioddoddodsdoddoddddoddoiisioddoiiioddoddddoiiiosdodddddoioddoisooddoiioodddddddoiosodddddddddoioisiiodddoosddooddddodddoiisiiioddddoddoiisoddddddododdoiisiiioiioddddoiioodddddddoiisioiiioddddddddoioiosioiiioddddddoisodododdddddoiisdoddddddosiiioiodddddddoiioiiiodddoiioddddodoiisiiiodddddddoiisioododdddoiioodoiisdoodddddoodoisdodddodddoisdooddddoddoisdoddddddosoiooddodddoiiioiiiodddddodoiisiiiodddddddooiiisodddddddddoiiiosdodddodddoisoodddddodddodoiisodsdoddddddddoiisoiiioddddddoiisdoddddddddoooiiisoddoddddosddoiioddodddddoiosoddddddosdododdddddodoioisiiiodoioodoiiodddoiioddddddoisiodoiioiiioddddddoiodsodddddddoisdooodddddddooiiodosiioddddoioddodoiisiiioodddodsoddddodddoisoddddddoiioddddoisodddoiosiioddoiiodoiodddddoioisdodddddddodoiisiioddodsdoioddoddddddoisioioddoooiioiiiodddddddoddoiisoddooioddoioioiioiiodddoddddoiisiiioodoiiododddddddoiisioioddddosodddoisiioddddddooiisoddddoiisiiioiodddooioddooiioiiiodoioooodddddddoioddoiisdoddddddoddoiisiodddosiiioiododddodsoddddddddoiioiiiooiiioddddoioiiioddoiioddodddddddoiiooisoddddddddoiisodddddddddoiisiiodddddoiiosdoddoiiiodddddddddoiisiiodddosoddddddodosiodddosiiiodddddddoiisiiiodddddddoiisoddosiiiodddddosoiioiiodoioddddddosoioddosoddddoiiodddddododoiisiioiiiodddddddoioiioiiioddddddododoiisioddodddoiiiosddoiiodddodddosddodddddoisdodddooddddooiiosoddddooiiioddddddoioiiiodddododoisoddddoiisiiioioddddddddooiisodosdoooddddoiiiodddddodoiisodddooddddddoiisiiioddddoddoisioiioddddoddoisioddddoisiiiodddddoddoiodoiisiiiodddddddoiiosiioiioddoddododdooisiododddoiisdoodddddodddoiioisoddddddddoisiioddoiiioiiododddddddoiioooodddoiisoooddosiioddddddoiisiiiodoiiodddoddsoddoddoodddddoiisiiiodddddosioiiioddddddddoiiosiiioodddddoisoddoiiodddddoddddoiiisdodddddosoddddddddoisiioddoiiioddoddosddoddddoioddoisodddddddoisoddddoiiodddodddodoiisodsdoddddddddoiiisdoddddodsododoiioddoodoiiiodddodddddoisoiiioiioddddododdddooiiisodddddddddoiiisdodddodddddoiisiiioddddoiiiododddoiosddoddddodosiioiioddddddddoiisoddddoiisiiiooddddddoiiodoisodddddddoisoddddddoosodddooddddddoiisoodoiioodddddoiiooisooodddddddoodooisioiiiodddoddddoisiododsoddddddoddoisiiiodddddoisodddddddoiosdoddddodsdoddddoddddoiiisoddodddoddosoddoddoioisioioioddddddoisiiodddoiioddsodddoioddddddoiosiioiiiododddoddsodddddoiodddoddoiiioiiioododoioioiiioddddddosdoddodddddoisoiiiodddodddoisiiioddddddoiisoddodddddoosiiiodddddosodddoisiioiioioddoodoiiodddoiioiiodddoddddddoioiioiiodddoddoiisioddsodddddodsdodddddodddoiisiiiooioddddoiiiodddddddoiisiioiioddddoodsdoodddoioddoiiiodddddoisdodddddosddodddddddoiisiiioiiodoioddddodddoisdoddddddddooiiisdoddddoddddoiisioddddoiioiodsdododdoiioddddddooiiosddodddoiiioioddddoiiiodddddddoiiioioddddoiiisoddddddoddoiodoisiodddddooiisoddddoiiiosoodddddddddoiiisdoddddddoosoioiodddoiiioddddoiooddoisioioiiododdddddoiisdodddddoiiioddoddddoiioisoodddddddddoiiiodoiosddoddddoiioioioddddddodoiiisodddddddosiiiododdddddoiisodooiiioddddodoisiiodddddoiisdoddddddddoiisioiiiodddddoddooisioiiiodddddddoiosodsodddddddddoiisiiiodddodddoiioooiodsdoddddodddoiisdodododdoiioiiiodddoodddosdoddoddddddoiisiiiodddoiooiioddddddoiisdodddddddoioisdoddoddoddddoiisiiioiiodddddodsooddoddddddoisiiododoiodddddoiiodooiosiioioddddddoisiioiiodddddddoisoiododosddoddddosdoddoiiioddoddddoioiiodddddodoiisioddosodddddddoisodddoioiodddddosodddddddddooiisiiioiodddddoiioioiioddddddddoiiiosododddddosdodddddoiodsdododddddosiodddoiosooddddddododdoiisiiooddddddoiisiiooiiiododooddddosoddddddoiiioiiioddddoddosddoddddddoiiododdoiiioodoisododddddodddoiisiioiiodddodddosioiioddddodddoiisioioddoiiioiioddddddoddoiisdodddoioddddosiiioddoddsodddddddddoiiisoddddddddodoiiisdoddoiiioddoiiodddddoodddoisiioiiodddddosodddoddoddddoiiisdodododdddoiodddoiiosioiiioddddddddoioiisodddddddosioddodosiioddddddoiisiioddoiioddddddoiiisoddddddodddoiisoddddoiisiooddddooisioddsodddddodoiiioiiiodddddddosiiioioddddddooddoiisiiiodddddddoiiisodddddddosiiiodddoddddoooiiisdoddddddddoiisiiioddddoddoisiioiiioddddodddosiioiooiiodddddoddooddoiisiiiodddddoisoddddoddoddooiisodddddoioddsododddddddoiisodddddddosiiioddoiiioioddddodddoisdoddddddosioiiiododddddosiiioioddddddoisoddddddddooiioosdoiodddddddoddoiisiiioiiooddddddodosoiiooddddddoiiioiodsododdddodddoiisdoddddddddooiisodddodoiisiioddddddoiisiioddddddooiisioiioiioodddddodddodoiodoiisoddosiiioiioddddddoddoisiioiododddddooiisdodddddoiioioddoddddoiioosiioiooddoodoiiodddddooisiioiiioddddddddoiisoodddoiiodddooiiioddddddoosiodddoioioiiioddddddoisiodddddoiisiioiioddodddddoiisodddoddddosoddoisoddodddddosiioiioddoiiiododdddddddoiisiiioiodddddodosiiioddddddoioiododoisiiiooiiodddddddddoiisoiiioiodoiiodddddddddoiisiiooiiioddddddddoiisdododddddosodsodddddddoisoddddoioiioddddodddoiosiiiododdoddooosiiiodddddosiiioddddddodoiiosiioddddddoiisiiiooiodddoddoioodsdododdddddoisiiioddddddoisiiiodddddddoooiisiiioddoddddodoiiisdooddoodddoiiiodddddoioisdodddoddddoisioddsoddddddddoisiiodddddoiisdodddddddoisiioddddddooiisoddoiosdoddoooddoddddoiioisododdoddddddoiisioiioddddosddoddddddoisoiioiiioddddddddoiisodododdodododddoiisiiioiodddddddoisiiiododdoiodoiododododdoiisiioooddddodoisooddddo

```

Just does the digits.

# Deadfish~, 5965 bytes

```
iiosdo{d}oiisiiodddoiiodddoosiiioddddosddodoio{d}iooiisdoiodddoioddddodddoiiisodddddooiioododddoosiioiiodddddoiioddosddo{d}ioiiso{d}oiiiodddoiisiioooiiiodododddodsoddodddodosdooddodddosdooioddddddoiioiioddddoddoiisoddddddoso{d}iioioiodso{d}iioddoiisoddoiosdo{d}oiisiiio{d}oiiisoddddddosddoiioddddddoioiiio{d}oioisioiiioodddddosdo{d}iioosiodddosiiioddddoosdoddo{d}ioiioioodsdoddoddo{d}oiisoioiiioo{d}iioiosddoddoddosodddo{d}ioisiioiio{d}oiiooioioiioiio{d}oiisiiodoiiiodddddododoisiiioddddoio{d}ooiisiiiodddddoisdo{d}oiioosioddsoddddddosdodo{d}oiiisdodddddooiioddsoddddoooddddoiioiooiioododdddoisiiio{d}ioiisoddoo{d}oiiioosdo{d}oiisiiioddoddsoddddddoiioioiiiodddodoiiioddddoiiodddoiiiododdddoisioioiiioddoododdddosiiioddddoiiio{d}oiisoiiioddddosddooddddoiioiiioo{d}ioisiioiiiodddddoiiioddddosddoddddoddoiioddoisiiodddoiiioiiio{d}ioiisdooiodddo{d}oiioddoiisiiioio{d}ioisioododooiioioo{d}ioisiiiodddododddoiisiioiiiooddddododso{d}iioisdo{d}iiodoiisdoddddoiio{d}oiisiioiioddddoiiioiio{d}oiiiosdoo{d}iioddoiiisoddddddooiooiioiio{d}ioisiiodddosoddddoiiiodddddooiiiodddosdoodoiio{d}iioddoioisiioddddosiiioddddoiiiooio{d}oiiioosoddddoiiioddddoddoiodddoiisoiioddo{d}oiiiso{d}iiosodddooiosoiioiiio{d}iioisdo{d}ioioisdododdoddddoiiso{d}iioiodddoiioisooddoiioddddoodoiioddoiioddddoddoiiosioiioiio{d}ioisioiiodo{d}ioioisdoddddoioodddodooiisodddddoddosioiiododdddosiiioiodddddoddoiisdo{d}ioisiiododdddodoioiisdoodoioddoddodsdoddoddddoddoiisioddoiiioddo{d}oiiiosdodddddoioddoisooddoiioo{d}iioioso{d}oioisiiodddoosddooddddodddoiisiiioddddoddoiisoddddddododdoiisiiioiioddddoiioo{d}oiisioiiio{d}oioiosioiiio{d}iioisododo{d}ioiisdo{d}iiosiiioio{d}ioiioiiiodddoiioddddodoiisiiio{d}oiisioodo{d}oiioodoiisdoodddddoodoisdodddodddoisdooddddoddoisdo{d}iiosoiooddodddoiiioiiio{d}iodoiisiiio{d}ooiiiso{d}oiiiosdodddodddoisoodddddodddodoiisodsdo{d}oiisoiiio{d}ioiisdo{d}oooiiisoddoddddosddoiioddodddddoiosoddddddosdodo{d}iodoioisiiiodoioodoiiodddoiio{d}ioisiodoiioiiioddddddoiodso{d}iioisdooo{d}iooiiodosiioddddoioddodoiisiiioodddodsoddddodddoisoddddddoiioddddoisodddoiosiioddoiiodoio{d}ioioisdo{d}iodoiisiioddodsdoioddo{d}ioisioioddoooiioiiio{d}iioddoiisoddooioddoioioiioiiodddo{d}oiisiiioodoiiodo{d}oiisioioddddosodddoisiio{d}ooiiso{d}oiisiiioiodddooioddooiioiiiodoioooo{d}iioioddoiisdo{d}iioddoiisiodddosiiioiododddodso{d}ioiioiiiooiiioddddoioiiioddoiioddo{d}oiiooiso{d}ioiiso{d}oiisiio{d}ioiiosdoddoiiio{d}oiisiiodddosoddddddodosiodddosiiio{d}oiisiiio{d}oiisoddosiiiodddddosoiioiiodoio{d}iiosoioddosoddddoiiodddddododoiisiioiiio{d}iioioiioiiio{d}iiododoiisioddodddoiiiosddoiiodddodddosddodddddoisdodddooddddooiiosoddddooiiio{d}iioioiiiodddododoiso{d}oiisiiioio{d}ooiisodosdoooddddoiiiodddddodoiisodddoo{d}oiisiiioddddoddoisioiioddddoddoisioddddoisiiiodddddoddoiodoiisiiio{d}oiiosiioiioddoddododdooisiododddoiisdoodddddodddoiioiso{d}ioisiioddoiiioiiodo{d}ioiioooodddoiisoooddosiio{d}oiisiiiodoiiodddoddsoddoddoo{d}oiisiiiodddddosioiiio{d}oiiosiiioodddddoisoddoiiodddddo{d}oiiisdodddddoso{d}ioisiioddoiiioddoddosddoddddoioddoiso{d}iioisoddddoiiodddodddodoiisodsdo{d}oiiisdoddddodsododoiioddoodoiiiodddo{d}ioisoiiioiioddddodo{d}ooiiiso{d}oiiisdodddo{d}oiisiiioddddoiiiododddoiosddoddddodosiioiio{d}oiiso{d}oiisiiioo{d}ioiiodoiso{d}iioisoddddddoosodddoo{d}oiisoodoiioo{d}oiiooisooo{d}iioodooisioiiiodddoddddoisiododsoddddddoddoisiiiodddddoiso{d}iioiosdoddddodsdoddddo{d}oiiisoddodddoddosoddoddoioisioioio{d}ioisiiodddoiioddsodddoio{d}ioiosiioiiiododddoddsodddddoiodddoddoiiioiiioododoioioiiioddddddosdoddo{d}ioisoiiiodddodddoisiiio{d}ioiisoddodddddoosiiiodddddosodddoisiioiioioddoodoiiodddoiioiiodddo{d}oioiioiiodddoddoiisioddsodddddodsdodddddodddoiisiiiooioddddoiiio{d}oiisiioiioddddoodsdoodddoioddoiiiodddddoisdodddddosddo{d}oiisiiioiiodoioddddodddoisdo{d}ooiiisdoddddo{d}oiisioddddoiioiodsdododdoiio{d}iooiiosddodddoiiioioddddoiiio{d}oiiioio{d}oiiisoddddddoddoiodoisio{d}ooiiso{d}oiiiosoo{d}oiiisdo{d}iioosoioiodddoiiioddddoiooddoisioioiiodo{d}ioiisdodddddoiiioddo{d}oiioisoo{d}oiiiodoiosddoddddoiioioio{d}iodoiiiso{d}iiosiiiodo{d}oiisodooiiioddddodoisiio{d}ioiisdo{d}oiisioiiiodddddoddooisioiiio{d}ioiosodso{d}oiisiiiodddodddoiioooiodsdoddddodddoiisdodododdoiioiiiodddoodddosdoddo{d}oiisiiiodddoiooiio{d}ioiisdo{d}ioioisdoddoddo{d}oiisiiioiiodddddodsooddo{d}ioisiiododoio{d}oiiodooiosiioio{d}ioisiioiio{d}ioisoiododosddoddddosdoddoiiioddoddddoioiio{d}iodoiisioddoso{d}iioisodddoioiodddddoso{d}ooiisiiioiodddddoiioioiio{d}oiiiosododddddosdodddddoiodsdododddddosiodddoiosooddddddododdoiisiioo{d}oiisiiooiiiododooddddosoddddddoiiioiiioddddoddosddo{d}ioiiododdoiiioodoisododddddodddoiisiioiiodddodddosioiioddddodddoiisioioddoiiioiioddddddoddoiisdodddoioddddosiiioddoddso{d}oiiiso{d}iodoiiisdoddoiiioddoiiodddddoodddoisiioiiodddddosodddoddo{d}oiiisdodododdddoiodddoiiosioiiio{d}oioiiso{d}iiosioddodosiio{d}oiisiioddoiio{d}oiiisoddddddodddoiiso{d}oiisiooddddooisioddsodddddodoiiioiiio{d}iiosiiioio{d}iiooddoiisiiio{d}oiiiso{d}iiosiiiodddo{d}oooiiisdo{d}oiisiiioddddoddoisiioiiioddddodddosiioiooiiodddddoddooddoiisiiiodddddoisoddddoddoddooiisodddddoioddsodo{d}ioiiso{d}iiosiiioddoiiioioddddodddoisdo{d}iiosioiiiododddddosiiioio{d}iioiso{d}iooiioosdoio{d}iioddoiisiiioiiooddddddodosoiioo{d}oiiioiodsododdddodddoiisdo{d}ooiisodddodoiisiio{d}oiisiio{d}ooiisioiioiioodddddodddodoiodoiisoddosiiioiioddddddoddoisiioiodo{d}iooiisdodddddoiioioddo{d}oiioosiioiooddoodoiio{d}iooisiioiiio{d}ioiisoodddoiiodddooiiio{d}iioosiodddoioioiiio{d}ioisio{d}oiisiioiioddo{d}ioiisodddoddddosoddoisoddodddddosiioiioddoiiiodo{d}oiisiiioiodddddodosiiio{d}ioioiododoisiiiooiio{d}oiisoiiioiodoiio{d}oiisiiooiiio{d}ioiisdododddddosodso{d}iioisoddddoioiioddddodddoiosiiiododdoddooosiiiodddddosiiio{d}iodoiiosiio{d}oiisiiiooiodddoddoioodsdodo{d}ioisiiio{d}ioisiiio{d}oooiisiiioddoddddodoiiisdooddoodddoiiio{d}ioioisdodddoddddoisioddso{d}ioisiio{d}ioiisdo{d}ioisiio{d}ooiisoddoiosdoddoooddo{d}oiioisododdo{d}oiisioiioddddosddo{d}ioisoiioiiio{d}ioiisodododdodododddoiisiiioio{d}ioisiiiododdoiodoiododododdoiisiioooddddodoisoo{d}o

```

Also just does the digits.

# Answer
> 2 votes
# Java (JDK), 101 bytes

```
v->{var x=java.math.BigInteger.ZERO;for(int i=280;i>0;)x=x.add(x.valueOf(17<<16).pow(i--));return x;}

```

Try it online!

## Credits

* fix increasing byte count by 1, and 1 byte reduction by iota.

# Answer
> 2 votes
# Husk, 14 bytes

```
ṁ`^1114112ḣ280

```

Try it online!

I found out that if you run a Husk program that doesn't take an argument, and include an argument, it errors. Here's an example.

## Explanation

```
          ḣ280 # Range from 1 to 280
ṁ              # Map over range and sum...
 `^1114112     # ...114112^n

```

# Answer
> 1 votes
# Charcoal, 15 bytes

```
ＩΣＸ⍘!<JOγ…¹¦²⁸¹

```

Try it online! Link is to verbose version of code. Explanation:

```
    !<JO        Literal string of printable ASCII
   ⍘    γ       Convert from base 95
  Ｘ             Vectorised raise to power
         …¹¦²⁸¹ Range from 1 to 280
 Σ              Take the sum
Ｉ               Cast to string
                Implicitly print

```

# Answer
> 1 votes
# Python 3.8, <sup>~~44~~ ~~31~~</sup> 30 bytes

Saved 13 bytes thanks to Makonede!!!
Saved a byte thanks to ovs!!!

```
print((x:=17<<16)**281//~-x-1)

```

Try it online!

# Answer
> 1 votes
# Canvas, 12 bytes

```
－„｛“ＦＲ］„；＾］∑

```

Try it here!

# Answer
> 1 votes
# Perl 5, 33 bytes

```
say+(($q=1114112)**281-$q)/($q-1)

```

Try it online!

# Answer
> 1 votes
# cQuents, 14 bytes

```
#280;1114112^$

```

Try it online!

## Explanation

```
#280            n = 280
    ;           output sum of first n terms
     1114112^$  each term is 1114112 ^ current index

```

# Answer
> 1 votes
# Perl 5 `-Mbigint`, 26 bytes

```
say 1114112**281/1114111-1

```

Try it online!

# Answer
> 1 votes
# Perl 6, 30 bytes

```
say 1114112**281 div 1114111-1

```

Try it online!

# Answer
> 1 votes
# Python 2, 28 bytes

```
print 1114112**281/1114111-1

```

Try it online!

# Answer
> 1 votes
# PowerShell, ~~39~~ 36 bytes

Based on the formula presented in @Delfad0r's answer.

```
[bigint]::Pow(1114112,281)/1114111-1

```

Try it online!

# Answer
> 1 votes
# F# (.NET Core), 60 bytes

```
printf"%A"(Seq.sumBy(fun i->bigint.Pow(1114112I,i)){1..280})

```

Try it online!

---
Tags: code-golf, number, kolmogorov-complexity
---