how to check the out put is prime or not

We have to add hours and minutes and check if it is prime or not
for example 07:20 then 7+20= 27
if it is prime the result should be true
else false
how to write code for this in AA