In this challenge, you are given an array of strings composed of the letters a-j. This array is special because it is an array of consecutive prime numbers which have been treated to a simple substitution cipher. Each of the numbers (0-9) have been substituted by one of the letters a-j. The substitution scheme is the same for all members of the array.
Your task is to develop a function that recovers the unencrypted array of primes.
cryptoprimes(["b", "c", "a", "i"]) ➞ [2, 3, 5, 7]
cryptoprimes(["bb", "bi", "bg", "bc"]) ➞ [11, 13, 17, 19]
cryptoprimes(["fgf", "fgb", "fgi", "fgd", "ffb"]) ➞ [101, 103, 107, 109, 113]
cryptoprimes(["ebhi", "ebhf", "ecaf", "ecjf", "ecjb"]) ➞ [6791, 6793, 6803, 6823, 6827]