Skip to content
Snippets Groups Projects
Commit 06790b15 authored by tracer-nju's avatar tracer-nju Committed by guo zling
Browse files

Static hostname: starker-HYM-WXX

       Icon name: computer-laptop
         Chassis: laptop
      Machine ID: 9f936e1bf87b4e7cb0e53e5422bcaf22
         Boot ID: 7f7f08a039ed40d2b473aed355f1e17b
Operating System: Ubuntu 22.04.2 LTS
          Kernel: Linux 5.19.0-45-generic
    Architecture: x86-64
 Hardware Vendor: HONOR
  Hardware Model: HYM-WXX
 11:04:42 up  1:01,  1 user,  load average: 0.47, 1.05, 1.13
parent ed796fc4
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ int *sieve(int n) {
//use other primes
for (int i = 3; i <= n; i+=2) {
if(!is_prime[i]) continue; //use prime i only
if(i*(i+2) > n) break;
//枚举优化 todo
for(int j = i*(i+2); j<=n; j = j+i+i){
is_prime[j] = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment