Skip to main content
1 of 3
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Jelly, 5 bytes

ÆNṃØA

A monadic Link which accepts a non-negative integer that yields a list of characters.

Try it online!

How?

ÆNṃØA - Link: integer, n
ÆN    - nth prime
   ØA - literal list of characters = ['A', 'B', ..., 'Z']
  ṃ   - base-decompress (use right as the digits [1,2,....,base-1,0] of left)
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282