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 05:00Yuriy LyfenkoYuriy LyfenkoScore: 47,163Success
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 05:0046,83164,148,79139,201,0002,010,0002,269,184
2Jun 27, 2021 05:0046,93463,906,19440,295,0001,007,0002,273,280
3Jun 27, 2021 05:0046,94470,201,76540,304,0001,007,0002,379,776
4Jun 27, 2021 05:0046,99267,462,51341,353,00002,269,184
5Jun 27, 2021 05:0047,07465,778,78341,425,00002,269,184
6Jun 27, 2021 05:0047,09163,034,18740,430,0001,010,0002,269,184
7Jun 27, 2021 05:0047,16368,252,66541,503,00002,379,776
8Jun 27, 2021 05:0047,19466,646,24940,519,0001,012,0002,269,184
9Jun 27, 2021 05:0047,22563,800,02240,545,0001,013,0002,375,680
10Jun 27, 2021 05:0049,078107,354,62943,188,97502,240,512
11Jun 27, 2021 05:0049,08794,912,70343,196,98302,215,936
12Jun 27, 2021 05:0049,321105,259,82243,402,74202,211,840