Задачи
Предыдущее число 4
n=int(input()) n=n-1 while(True): if(n%2!=0 and n%3!=0 and n%5!=0): print(n) break else: n=n-1
include <iostream>
include <cmath>
using namespace std;
define ll long long
int main() { ll n; cin>>n; n--; while(n%2==0 || n%3==0 || n%5==0) { n--; } cout<<n; }
include <bits/stdc++.h>
using namespace std; int main() { long long n; cin>>n; n--; while(n%2==0 || n%3==0 || n%5==0) { n--; } cout<<n; }
include <iostream>
include <cmath>
using namespace std;
int main () { long n, m = 0, cem; cin >> n; n--; while (n % 2 == 0 || n % 3 == 0 || n % 5 == 0) { n--; } cout << n;
} //zed botumdu olacaqda