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 04:43Yuriy LyfenkoYuriy LyfenkoScore: 36,686Success
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 04:4334,60988,155,81630,456,03102,215,936
2Jun 27, 2021 04:4334,75394,952,16230,583,00702,224,128
3Jun 27, 2021 04:4334,85288,413,04830,669,87202,224,128
4Jun 27, 2021 04:4336,55260,125,65132,166,00002,375,680
5Jun 27, 2021 04:4336,64465,385,42130,232,0002,015,0002,269,184
6Jun 27, 2021 04:4336,68356,535,62230,264,0002,017,0002,273,280
7Jun 27, 2021 04:4336,68655,068,63431,276,0001,008,0002,383,872
8Jun 27, 2021 04:4336,69354,219,81532,290,00002,473,984
9Jun 27, 2021 04:4336,69556,128,05230,274,0002,018,0002,269,184
10Jun 27, 2021 04:4336,76957,576,24432,357,00002,371,584
11Jun 27, 2021 04:4336,78353,923,61231,358,0001,011,0002,269,184
12Jun 27, 2021 04:4336,82253,062,46731,391,0001,012,0002,269,184