Sfoglia il codice sorgente

remove logs messages

master
flavis 6 anni fa
parent
commit
c670eeb71a
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. +0
    -2
      ws2019/ipi/uebungen/primfaktorzerlegung.cpp

+ 0
- 2
ws2019/ipi/uebungen/primfaktorzerlegung.cpp Vedi File

@@ -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…
Annulla
Salva