If c=0, then b2+d2≤2⋅72, which means that ab must be a prime number such that 1924≤ab2<2022, false. Therefore, c=0. As ab and cb are primes, from the given equality we deduce that d=2. We obtain ab2+cb2=2018<472, thus ab and cb are at most 43. Since b is an odd digit, and the last digit of ab2+cb2 is 8, we deduce that b∈{3,7}.
If b=7, then ab,cb∈{17,37}, therefore ab2,cb2∈{289,1369} and ab2+cb2=2018.
If b=3, then ab,cb∈{13,23,43}, and we verify that only for (ab,cb)∈{(13,43),(43,13)} the given equality holds, therefore the solutions are abcd=1342 and abcd=4312.