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 = $ L ; $ i <= $ R ; $ i ++ ) { if ( ! $ prime [ $ i ] ) {