2047

2047 is the smallest composite with prime index.

It is also the smallest to base 2.