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 28, 2021 02:51Yuriy LyfenkoYuriy LyfenkoScore: 36,035Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 02:5031,40899,798,37527,639,12902,220,032
2Jun 28, 2021 02:5131,434113,618,53827,661,58002,232,320
3Jun 28, 2021 02:5131,45588,433,46827,680,75602,228,224
4Jun 28, 2021 02:5131,51789,740,17127,735,36902,224,128
5Jun 28, 2021 02:5131,53687,929,23727,751,48902,215,936
6Jun 28, 2021 02:5131,56382,732,82927,775,17002,211,840
7Jun 28, 2021 02:5031,600106,772,58027,807,60702,224,128
8Jun 28, 2021 02:5031,64488,737,09027,846,45102,215,936
9Jun 28, 2021 02:5131,65689,310,65427,857,34002,215,936
10Jun 28, 2021 02:5136,03556,545,06530,689,0001,022,0002,379,776
11Jun 28, 2021 02:5136,07057,902,71931,742,00002,269,184
12Jun 28, 2021 02:5136,21957,557,59929,881,0001,992,0002,265,088
13Jun 28, 2021 02:5136,25556,668,75829,910,0001,994,0002,269,184
14Jun 28, 2021 02:5136,27660,194,22729,928,0001,995,0002,269,184
15Jun 28, 2021 02:5136,30056,388,48929,948,0001,996,0002,375,680
16Jun 28, 2021 02:5136,30559,287,03230,950,000998,0002,269,184
17Jun 28, 2021 02:5136,33855,337,00429,979,0001,998,0002,379,776
18Jun 28, 2021 02:5136,33858,627,19329,979,0001,998,0002,379,776