In this challenge, you have to establish if a given number is Brilliant. A Brilliant number is a semiprime that can be obtained only by multiplicating two, and only two, different primes with the same number of digits.
A semiprime can be:
Given an integer n, implement a function that returns true if n is a Brilliant number, or false if it's not.
is_brilliant(11) ➞ false
# 11 is a prime.
is_brilliant(9) ➞ true
# 9 is equal to the square of a prime: 3²
is_brilliant(21) ➞ true
# 21 is equal to the product of two different primes: 3 x 7
# 3 and 7 have the same digital length.
is_brilliant(22) ➞ false
# 22 is equal to the product of two different primes: 2 x 11
# 2 and 11 have different digital lengths.n will be a positive integer greater than 0.