#include using namespace std; bool prime(int num) { if (num n; int ans = 0; while (n > 0) { if (prime(n % 10)) ans += n % 10; n = n / 10; } cout