浏览代码

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 {


正在加载...
取消
保存