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 27, 2021 19:28Yuriy LyfenkoYuriy LyfenkoScore: 36,934Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:2931,58196,469,85427,791,25602,215,936
2Jun 27, 2021 19:2831,595101,082,24627,803,55302,220,032
3Jun 27, 2021 19:2931,64097,497,40127,843,63902,215,936
4Jun 27, 2021 19:2831,65994,104,06127,859,87302,228,224
5Jun 27, 2021 19:2931,68990,227,45427,886,15802,215,936
6Jun 27, 2021 19:2831,72889,291,08327,920,36602,215,936
7Jun 27, 2021 19:2936,74554,912,13332,336,00002,375,680
8Jun 27, 2021 19:2836,81353,032,70831,383,0001,012,0002,375,680
9Jun 27, 2021 19:2936,88157,502,01831,441,0001,014,0002,371,584
10Jun 27, 2021 19:2836,88254,971,25931,442,0001,014,0002,375,680
11Jun 27, 2021 19:2836,88653,073,51131,446,0001,014,0002,269,184
12Jun 27, 2021 19:2836,90260,311,49531,460,0001,014,0002,371,584
13Jun 27, 2021 19:2936,93467,230,39031,487,0001,015,0002,269,184
14Jun 27, 2021 19:2936,93553,317,49331,488,0001,015,0002,269,184
15Jun 27, 2021 19:2936,94256,955,93932,509,00002,375,680
16Jun 27, 2021 19:2936,94854,106,60431,498,0001,016,0002,375,680
17Jun 27, 2021 19:2836,95062,166,29632,516,00002,383,872
18Jun 27, 2021 19:2836,95058,566,42231,500,0001,016,0002,371,584
19Jun 27, 2021 19:2936,95956,593,49532,524,00002,375,680
20Jun 27, 2021 19:2836,97351,803,36432,536,00002,371,584
21Jun 27, 2021 19:2836,98654,246,00831,531,0001,017,0002,269,184
22Jun 27, 2021 19:2837,02056,340,27432,578,00002,269,184
23Jun 27, 2021 19:2937,03860,311,21331,575,0001,018,0002,367,488
24Jun 27, 2021 19:2937,14559,486,61231,667,0001,021,0002,375,680