Substitute each of the capital letters by a different digit from 0 to 9 to satisfy this set of alphametic relationships. Each of A and R is nonzero.
(i) Each of RAISE and ARIES is a perfect square, and:
(ii) I + S and A + E are consecutive primes.