Print all the numbers! (At least, as many as possible.)

-1

0

Your task is to print a number. Simple, right? It is simple, but not as simple as this. The first answer is to print the number 1, the second answer is to print the number 2, etc.

Rules

  1. The first answer must print 1, and the nth answer must print n.
  2. The first answer may be of any length.
  3. Whitespace, comments, etc. are permitted.
  4. The next answer's submission's length must within 1 unit of the previous answer's length. That is, if a submissions length is L, the next submission must be of length L + 1 or L - 1. The length is measured in characters, not bytes.
  5. No language may be used more than once.
  6. No person may answer earlier than eight hours after their most recent answer.
  7. No person may answer twice in a row.
  8. You may not use a REPL environment.

To win, you must have the most valid answers to this question. You may use a language updated after/ made later than this challenge so long as the language was not intended to answer this challenge.

Answer template

All answers must conform to this template.

# Answer N, Lang name, M characters

    program

 optional description

Leader board

A leader board will be maintained here in this section. (If anyone wants to create a leader board counting the number of submissions a person has, I will give them a 50 rep bounty on any answer to this question.)

Seadrus

Posted 2016-03-09T19:25:27.157

Reputation: 1 291

Question was closed 2016-03-09T21:01:06.247

3I'm voting to close this as too broad, as, quote: "There are either too many possible answers..." – Addison Crump – 2016-03-09T20:33:54.263

@CoolestVeto How? – LegionMammal978 – 2016-03-09T20:42:18.800

5How can you win? This can go on forever. The winner just changes constantly? – Rɪᴋᴇʀ – 2016-03-09T20:43:29.863

@RikerW I guess that it's a question of who can find the most languages to answer in. However, another plausible criterion is the person with the most answers after <x amount of time> without any new answers. – LegionMammal978 – 2016-03-09T20:47:01.403

8The idea is good, but it needs something to make it harder after each answer. This would have benefited from some time in the sandbox. – James – 2016-03-09T20:48:30.537

@LegionMammal978 I think that is a good idea. – Rɪᴋᴇʀ – 2016-03-09T20:55:46.967

3This is far too broad in my opinion. You can basically fill your code with no-ops until the desired number of bytes is reached. – Adnan – 2016-03-09T21:08:12.323

Answers

4

Answer 8, Carrot, 3 bytes

8^ 

Note the trailing space.

Rɪᴋᴇʀ

Posted 2016-03-09T19:25:27.157

Reputation: 7 410

3

Answer 2, GolfScript, 1 character

2

Pushes the number 2 to the stack.

LegionMammal978

Posted 2016-03-09T19:25:27.157

Reputation: 15 731

3

Answer 4, CJam, 3 characters

2))

Pushes 2 and increments twice.

Other solutions:

C4/
D5%
T3+

GamrCorps

Posted 2016-03-09T19:25:27.157

Reputation: 7 058

3

Answer 5, dc, 2 characters

5p

Pushes 5 and prints it.

Digital Trauma

Posted 2016-03-09T19:25:27.157

Reputation: 64 644

3

Answer 6, pl, 3 characters

6⌂⌂

The last two characters are no-ops.

a spaghetto

Posted 2016-03-09T19:25:27.157

Reputation: 10 647

3

Answer 7, Befunge, 4 characters

43+.

Add 4 to the stack, then 3, add the top 2 stack values, then print the top value as an int.

Kevin W.

Posted 2016-03-09T19:25:27.157

Reputation: 763

3

Answer 10, PowerShell, 3 chars

+10

Even when not golfing we need to golf. :) Frustratingly, though, here the + is superfluous, but we can't go down to 2 chars since the Fission answer was 4.

AdmBorkBork

Posted 2016-03-09T19:25:27.157

Reputation: 41 581

4Related – Addison Crump – 2016-03-09T20:12:11.973

3

Answer 12, MSM, 3 characters

.21

. concatenates the two rightmost elements 2 and 1 to 12. MSM stops when there's only one element left.

nimi

Posted 2016-03-09T19:25:27.157

Reputation: 34 639

3

Answer 14, Pylons, 3 characters.

B4+

Pushes 10 and 4 to the stack and then adds them.

Try it online

Morgan Thrapp

Posted 2016-03-09T19:25:27.157

Reputation: 3 574

3

Answer 13, TI-BASIC, 2 characters

13

Pretty much.

lirtosiast

Posted 2016-03-09T19:25:27.157

Reputation: 20 331

3

Answer 15, 05AB1E, 4 characters

4o<?

Try it here.

Basically, it does 2^4 - 1.

Paul Picard

Posted 2016-03-09T19:25:27.157

Reputation: 863

I based my answer on valid answers, ignoring the PHP one. – Paul Picard – 2016-03-09T20:58:48.890

1Your language caught my attention on another challenge, so I tried it :D Thanks for creating it @AandN ! – Paul Picard – 2016-03-09T20:59:45.480

Haha, no problem :). It's always nice to see someone else use 05AB1E too :). – Adnan – 2016-03-09T21:08:47.480

Note: This language is pronounced Osable, not Usable or Osabie. – Rɪᴋᴇʀ – 2016-03-10T02:35:48.070

...It didn't even occur to me it was a word. Welp – Paul Picard – 2016-03-10T16:29:22.977

2

Answer 1, Retina, 0 characters



The empty program outputs the number of matches on the input. Since the empty program matches the input once, 1 is outputted.. Try it online!

Conor O'Brien

Posted 2016-03-09T19:25:27.157

Reputation: 36 228

that was fast. that reminds me i need to include an answer template – Seadrus – 2016-03-09T19:27:02.773

2

Answer 3, Vitsy, 2 bytes

3N

Pushes three, outputs three.

Try it online!

For lols, verbose mode:

push 3;
output top as number;

Addison Crump

Posted 2016-03-09T19:25:27.157

Reputation: 10 763

1Damnit, was going to post a Vitsy answer. >.< – Rɪᴋᴇʀ – 2016-03-09T19:59:32.207

@RikerW Vitsy'd. – Addison Crump – 2016-03-09T20:00:02.113

2

Answer 9, Fission, 4 characters

R'9O

Creates an atom moving right
Sets its mass to character value of 9
Outputs the ascii character of the mass and destroys the atom

Try it online

MickyT

Posted 2016-03-09T19:25:27.157

Reputation: 11 735

2

Answer 11, Pyth, 2 characters

11

Yawn...

Doorknob

Posted 2016-03-09T19:25:27.157

Reputation: 68 138

2

Answer 16, Jelly, 3 characters

⁴OO

The two O's was just to fill the remaining 2 characters. Test here.

removed

Posted 2016-03-09T19:25:27.157

Reputation: 2 785

You should've waited till there's a shorter answer in the chain ;) – ETHproductions – 2016-03-09T21:29:27.067