Skip to main content
edited body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Jelly, 8 bytes

ÆNḃ26ịØAÆNḃ26ịØa

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

Try it online!Try it online!

How?

ÆNḃ26ịØAÆNḃ26ịØa - Link: integer, n
ÆN       - nth prime
   26    - literal 26
  ḃ      - bijective base
      ØAØa - literal list of characters = ['A'['a', 'B''b', ..., 'Z']'z']
     ị   - index into

Jelly, 8 bytes

ÆNḃ26ịØA

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

Try it online!

How?

ÆNḃ26ịØA - Link: integer, n
ÆN       - nth prime
   26    - literal 26
  ḃ      - bijective base
      ØA - literal list of characters = ['A', 'B', ..., 'Z']
     ị   - index into

Jelly, 8 bytes

ÆNḃ26ịØa

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

Try it online!

How?

ÆNḃ26ịØa - Link: integer, n
ÆN       - nth prime
   26    - literal 26
  ḃ      - bijective base
      Øa - literal list of characters = ['a', 'b', ..., 'z']
     ị   - index into
added 22 characters in body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Jelly, 58 bytes

ÆNṃØAÆNḃ26ịØA

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

Try it online!Try it online!

How?

ÆNṃØAÆNḃ26ịØA - Link: integer, n
ÆN       - nth prime
   26    - literal 26
   - bijective base
      ØA - literal list of characters = ['A', 'B', ..., 'Z']
   - base-decompress (use right as the digits [1,2,....,base-1,0] ofindex left)into

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)

Jelly, 8 bytes

ÆNḃ26ịØA

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

Try it online!

How?

ÆNḃ26ịØA - Link: integer, n
ÆN       - nth prime
   26    - literal 26
   - bijective base
      ØA - literal list of characters = ['A', 'B', ..., 'Z']
        - index into
Source Link
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)