You could do it with a bunch of macros - its evil and it's ugly and I can't see why you'd want to, but here you go:
#define V10(x) (x), (x)+1, (x)+2, (x)+3, (x)+4, (x)+5, (x)+6, (x)+7, (x)+8, (x)+9
#define V100(x) V10(x), V10(x+10), V10(x+20), V10(x+30), V10(x+40), \
V10(x+50), V10(x+60), V10(x+70), V10(x+80), V10(x+90)
#define V1000(x) V100(x), V100(x+100), V100(x+200), V100(x+300), V100(x+400), \
V100(x+500), V100(x+600), V100(x+700), V100(x+800), V100(x+900)
const int a[5000] = { V1000(1), \
V1000(1001), \
V1000(2001), \
V1000(3001), \
V1000(4001) };