Do not print to avoid skewing the run timing.
This commit is contained in:
parent
697bb39a7f
commit
7fa05f3886
@ -62,8 +62,10 @@ let a = mat_gen(SIZE);
|
|||||||
let b = mat_gen(SIZE);
|
let b = mat_gen(SIZE);
|
||||||
let c = mat_mul(a, b);
|
let c = mat_mul(a, b);
|
||||||
|
|
||||||
|
/*
|
||||||
for i in range(0, SIZE) {
|
for i in range(0, SIZE) {
|
||||||
print(c[i]);
|
print(c[i]);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
print("Finished. Run time = " + now.elapsed + " seconds.");
|
print("Finished. Run time = " + now.elapsed + " seconds.");
|
||||||
|
@ -15,7 +15,7 @@ let total_primes_found = 0;
|
|||||||
for p in range(2, MAX_NUMBER_TO_CHECK) {
|
for p in range(2, MAX_NUMBER_TO_CHECK) {
|
||||||
if !prime_mask[p] { continue; }
|
if !prime_mask[p] { continue; }
|
||||||
|
|
||||||
print(p);
|
//print(p);
|
||||||
|
|
||||||
total_primes_found += 1;
|
total_primes_found += 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user