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 20:57Yuriy LyfenkoYuriy LyfenkoScore: 36,713Success
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 20:5631,58690,386,58227,795,80902,207,744
2Jun 27, 2021 20:5631,59097,236,39527,798,91902,211,840
3Jun 27, 2021 20:5631,633101,962,49327,836,68702,215,936
4Jun 27, 2021 20:5731,68086,775,24027,878,64702,215,936
5Jun 27, 2021 20:5731,68195,540,71327,879,67702,215,936
6Jun 27, 2021 20:5731,70983,894,81327,904,20302,207,744
7Jun 27, 2021 20:5636,51555,810,76930,125,0002,008,0002,367,488
8Jun 27, 2021 20:5636,51862,940,96331,132,0001,004,0002,379,776
9Jun 27, 2021 20:5736,52862,608,32630,136,0002,009,0002,269,184
10Jun 27, 2021 20:5636,63160,671,28131,228,0001,007,0002,383,872
11Jun 27, 2021 20:5636,69457,252,96332,291,00002,269,184
12Jun 27, 2021 20:5636,71355,157,20731,298,0001,009,0002,269,184
13Jun 27, 2021 20:5736,71359,294,86131,298,0001,009,0002,269,184
14Jun 27, 2021 20:5736,72453,653,79232,317,00002,269,184
15Jun 27, 2021 20:5736,73558,372,99432,327,00002,269,184
16Jun 27, 2021 20:5636,78255,496,54832,368,00002,269,184
17Jun 27, 2021 20:5636,78257,116,27831,357,0001,011,0002,269,184
18Jun 27, 2021 20:5736,78956,894,78431,363,0001,011,0002,269,184
19Jun 27, 2021 20:5636,79254,585,84832,377,00002,379,776
20Jun 27, 2021 20:5736,81958,513,21832,401,00002,269,184
21Jun 27, 2021 20:5736,81959,493,98931,389,0001,012,0002,375,680
22Jun 27, 2021 20:5636,83259,365,51131,400,0001,012,0002,269,184
23Jun 27, 2021 20:5736,91164,370,13132,482,00002,469,888
24Jun 27, 2021 20:5736,93253,116,54632,500,00002,383,872