- 1

Help please 😌

Дано целое положительное число n. Требуется найти наименьшее целое положительное k, такое, что nn неделится на k.

26th Apr 2017, 8:29 AM
Egor Shifrov
Egor Shifrov - avatar
4 Answers
+ 8
int n; cin >> n; for(int k=2;k<=n;k++){ if(n%k==0){ cout << k; break;}}
26th Apr 2017, 9:06 AM
Meharban Singh
Meharban Singh - avatar
+ 6
Help please Given a positive integer n. It is required to find the smallest positive integer k such that nn is divisible by k. (Translated by google translate)
26th Apr 2017, 9:03 AM
Meharban Singh
Meharban Singh - avatar
+ 5
😇😇😇😇😇 i don't understand your queston
26th Apr 2017, 8:34 AM
Nithiwat
Nithiwat - avatar
- 1
Given a positive integer n. It is required to find the smallest positive integer k such that n is not divisible by k
26th Apr 2017, 9:05 AM
Egor Shifrov
Egor Shifrov - avatar