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 18:42Yuriy LyfenkoYuriy LyfenkoScore: 56,242Success
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 18:4243,85295,663,93638,589,91002,215,936
2Jun 21, 2021 18:4244,25097,789,17238,940,31802,215,936
3Jun 21, 2021 18:4244,329103,841,36139,009,38402,215,936
4Jun 21, 2021 18:4256,13570,398,73849,399,00002,269,184
5Jun 21, 2021 18:4256,16785,237,14249,427,00002,371,584
6Jun 21, 2021 18:4256,22272,812,20248,466,0001,009,0002,379,776
7Jun 21, 2021 18:4256,24277,767,96049,493,00002,269,184
8Jun 21, 2021 18:4256,28174,168,68148,517,0001,010,0002,379,776
9Jun 21, 2021 18:4256,30872,069,55749,551,00002,367,488
10Jun 21, 2021 18:4256,38475,295,44649,618,00002,478,080
11Jun 21, 2021 18:4256,38673,369,91749,620,00002,269,184
12Jun 21, 2021 18:4256,43378,106,60348,648,0001,013,0002,269,184