Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. int NrPrime(int n){
  2. int s = 0;
  3. while (n > 0){
  4. if (n % 10 == 2 || n % 10 == 3 || n % 10 == 5 || n % 10 == 7)
  5. s++;
  6. n = n / 10; }
  7. return s;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement