Join us

We're always looking for all-round engineers who aren't afraid to get their hands dirty and are easy to talk to.

Vacation

A generous vacation policy — you should have time to recharge.

Competitive salary

Compensation that reflects your skills and experience.

Dynamic environment

Challenging work in a small, fast-moving team.

The code challenge

Want to work with us? Solve the challenge below to unlock the contact form.

The Fibonacci Prime Decoder

Background

A former developer at Pixen left behind a strange piece of code used to generate a hidden email address. It uses the Fibonacci sequence and prime numbers in an unusual way. Your mission is to decode the logic and reconstruct the email address.

Your task

Implement a program (in any programming language) that does the following:

  1. Generate the first 61 Fibonacci numbers, with F(0) = 0 and F(1) = 1.
  2. For each index n between 20 and 60 (inclusive):
    • Check whether n is prime.
    • If it is, take the nth Fibonacci number F(n) and:
      • If the number of digits is odd, extract the single middle digit.
      • If the number of digits is even, extract the two middle digits (from the centre out).
    • Append all extracted digits into one sequence.
  3. Use the resulting sequence to generate the following email: [sequence]@pixenverse.com

Example (not the real output)

If the extracted digits were 123456, the resulting email would be:
123456@pixenverse.com

Final twist: add the secret letter

To complete the challenge, append one final letter to the end of your sequence, before @pixenverse.com.

It isn't given to you directly. Instead, solve this riddle (tied to the standard 26-letter alphabet):
“I'm the last to arrive, though I often come first in a race of letters. You'll find me only after 25 others. Who am I?”

Final format

[sequence + secret_letter]@pixenverse.com

Good luck decoding!