瀏覽代碼

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…
取消
儲存