高效率的算法 计算100亿内的素数的个数 3.01G的cpu运算只用8.64秒!!!!
摘要:
计算100亿内的素数的个数 3.01G的cpu运算只用8.64秒!!!!#include <windows.h>#include <stdio.h>#include <stdlib.h>#include <assert.h>#include <time.h>__int64 maxn = 10000000L;const long maxlen = 100000;long m = 5;const long dots = 80;BYTE *mask;long primes[maxlen+2], mprimes[maxlen+2], ans[ 阅读全文
posted @ 2011-08-19 21:16 峻华 阅读(1310) 评论(0) 推荐(0)
浙公网安备 33010602011771号