For all number between L to R , check if prime or not . If prime , incrementing the frequency of digits present in the prime number .
for i in range ( L , R + 1 ) : NEW_LINE INDENT if ( not prime [ i ] ) : NEW_LINE DEDENT