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 24, 2021 00:23Yuriy LyfenkoYuriy LyfenkoScore: 45,336Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2021 00:2340,28090,045,97835,446,80002,224,128
2Jun 24, 2021 00:2340,30792,034,08635,470,12502,224,128
3Jun 24, 2021 00:2340,397103,835,58135,549,04402,215,936
4Jun 24, 2021 00:2345,29166,857,15737,864,0001,992,0002,379,776
5Jun 24, 2021 00:2345,33274,723,14838,895,000997,0002,269,184
6Jun 24, 2021 00:2345,33366,347,12837,899,0001,994,0002,269,184
7Jun 24, 2021 00:2345,33666,998,80737,902,0001,994,0002,269,184
8Jun 24, 2021 00:2345,40063,864,57938,954,000998,0002,269,184
9Jun 24, 2021 00:2345,40668,635,59538,959,000998,0002,375,680
10Jun 24, 2021 00:2345,44466,656,27538,992,000999,0002,269,184
11Jun 24, 2021 00:2345,55569,443,73338,084,0002,004,0002,269,184
12Jun 24, 2021 00:2345,55673,090,36238,085,0002,004,0002,379,776