Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 21, 2021 18:31Yuriy LyfenkoYuriy LyfenkoScore: 44,234Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:2738,924101,364,25934,253,38202,215,936
2Jun 21, 2021 18:3138,98793,450,63034,308,14502,215,936
3Jun 21, 2021 18:2739,004107,441,23334,323,92002,224,128
4Jun 21, 2021 18:3139,06892,830,04534,379,53602,211,840
5Jun 21, 2021 18:2739,07095,189,81934,381,76602,215,936
6Jun 21, 2021 18:3139,083106,026,89834,392,74602,215,936
7Jun 21, 2021 18:2743,96574,063,17138,689,00002,367,488
8Jun 21, 2021 18:3144,18069,475,70336,885,0001,993,0002,379,776
9Jun 21, 2021 18:3144,19764,508,00137,896,000997,0002,379,776
10Jun 21, 2021 18:2744,20167,840,30736,903,0001,994,0002,269,184
11Jun 21, 2021 18:2744,20364,549,75637,902,000997,0002,269,184
12Jun 21, 2021 18:3144,21469,101,31436,913,0001,995,0002,269,184
13Jun 21, 2021 18:2744,23464,449,57036,930,0001,996,0002,269,184
14Jun 21, 2021 18:2744,24263,707,49937,935,000998,0002,375,680
15Jun 21, 2021 18:3144,24570,173,58936,940,0001,996,0002,367,488
16Jun 21, 2021 18:2744,26064,591,22837,951,000998,0002,269,184
17Jun 21, 2021 18:3144,26364,895,55936,954,0001,997,0002,375,680
18Jun 21, 2021 18:2744,26869,670,91337,958,000998,0002,375,680
19Jun 21, 2021 18:3144,28073,207,06036,968,0001,998,0002,273,280
20Jun 21, 2021 18:3144,28260,842,53436,970,0001,998,0002,367,488
21Jun 21, 2021 18:3144,30663,519,73236,990,0001,999,0002,269,184
22Jun 21, 2021 18:2744,32263,616,45537,003,0002,000,0002,269,184
23Jun 21, 2021 18:3144,34565,310,16837,023,0002,001,0002,269,184
24Jun 21, 2021 18:2744,37768,668,66537,050,0002,002,0002,269,184