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 21, 2021 13:42Yuriy LyfenkoYuriy LyfenkoScore: 56,099Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:4241,79994,041,71236,783,05402,211,840
2Jun 21, 2021 13:4241,972103,569,60936,935,31802,224,128
3Jun 21, 2021 13:4242,019116,823,10736,977,09802,211,840
4Jun 21, 2021 13:4255,93581,421,87648,219,0001,004,0002,269,184
5Jun 21, 2021 13:4256,05774,105,04848,324,0001,006,0002,379,776
6Jun 21, 2021 13:4256,06172,228,90249,334,00002,375,680
7Jun 21, 2021 13:4256,09972,467,77849,367,00002,269,184
8Jun 21, 2021 13:4256,11075,467,42148,370,0001,007,0002,371,584
9Jun 21, 2021 13:4256,21475,610,66249,468,00002,375,680
10Jun 21, 2021 13:4256,24776,111,23148,487,0001,010,0002,269,184
11Jun 21, 2021 13:4256,26874,624,51248,506,0001,010,0002,379,776
12Jun 21, 2021 13:4256,29775,619,64148,530,0001,011,0002,371,584