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 16:54Yuriy LyfenkoYuriy LyfenkoScore: 36,605Success
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 16:5433,235116,769,86329,247,17202,224,128
2Jun 27, 2021 16:5433,25595,714,94029,264,10102,215,936
3Jun 27, 2021 16:5433,26890,672,46229,276,27202,220,032
4Jun 27, 2021 16:5436,48557,346,76430,101,0002,006,0002,273,280
5Jun 27, 2021 16:5436,54265,119,50930,148,0002,009,0002,269,184
6Jun 27, 2021 16:5436,55655,332,03530,159,0002,010,0002,375,680
7Jun 27, 2021 16:5436,60556,401,30130,199,0002,013,0002,371,584
8Jun 27, 2021 16:5436,62259,352,55130,213,0002,014,0002,269,184
9Jun 27, 2021 16:5436,66154,356,43331,254,0001,008,0002,269,184
10Jun 27, 2021 16:5436,66553,324,52131,257,0001,008,0002,269,184
11Jun 27, 2021 16:5436,69857,760,82832,294,00002,269,184
12Jun 27, 2021 16:5436,79357,158,42531,367,0001,011,0002,379,776