Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- long long a,b,l=0;
- cin >>a>>b;
- for (int i=a;i<b+1;i++)
- {
- int k=0;
- for (int j=2;j<=sqrt(i);j++)
- {
- if (i%j==0)
- {
- k++;
- }
- }
- if (k==0)
- {
- //cout <<i;
- int lol=i;
- while(lol!=0)
- {
- if(lol%100==13)
- {
- break;
- }
- lol/=100;
- }
- }
- }
- cout <<l;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement