Please in order to save solutions and appear on the leaderboards.

Look and Say


The Look and Say sequence starts with 1 and is continued by looking at each of the runs of the same number in the previous term and combining the length with the original number. For example the next term after 111221 would be 312211 (three ones, two twos and one one).

Print the first 20 terms of the Look and Say sequence.

0 bytes, 0 chars
Restore solution
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Look and Say?

If you have seperate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.