# C gnu99, 126 bytes

Port of [my R answer](https://codegolf.stackexchange.com/a/269079/17360). The initialization of array `C` to 1s is a GNU extension.

```c
i;d;j;t;C[]={[0 ...255]=1};main(){puts("2");while(++i<500){d=0;j=254;while(j-->2)t=10*C[j]+d,d=t/j,C[j]=t-d*j;putchar(d+48);}}
```

[Attempt This Online!](https://ato.pxeger.com/run?1=m700OT49OXnBgqWlJWm6FjfrMq1TrLOsS6ydo2Ntq6MNFPT09IxMTWNtDWutcxMz8zQ0qwtKS4o1lIyUNK3LMzJzUjW0tTNtTA0MNKtTbA2ss2yNTE2gElm6unZGmiW2hgZaztFZsdopOim2JfpZOiCObYluilaWNdCs5IzEIo0UbRMLTevaWogroI6BOQoA)