Преглед изворни кода

remove logs messages

master
flavis пре 6 година
родитељ
комит
c670eeb71a
1 измењених фајлова са 0 додато и 2 уклоњено
  1. +0
    -2
      ws2019/ipi/uebungen/primfaktorzerlegung.cpp

+ 0
- 2
ws2019/ipi/uebungen/primfaktorzerlegung.cpp Прегледај датотеку

@@ -6,14 +6,12 @@ int main() {
int k=2;
// go until sqrt(n)
while (k <= sqrt(n)) {
printf("searching for dividers for %d, checking %d\n", n, k);
// k is factor of n
if (n % k == 0) {
// print out the factor k
print(k);
// reset n to the quotient
n = n / k;
printf("found %d, setting n=%d\n", k, n);
// restart at k=2
k = 2;
} else {


Loading…
Откажи
Сачувај