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 listDec 28, 2022 06:31Robert BurkeRobert BurkeScore: 23,364Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:3119,63487,888,30717,277,52302,207,744
2Dec 28, 2022 06:3119,80475,983,18517,427,84902,211,840
3Dec 28, 2022 06:3119,816118,175,58317,438,51002,211,840
4Dec 28, 2022 06:3123,20045,589,28320,416,00002,494,464
5Dec 28, 2022 06:3123,25036,673,13920,460,00002,379,776
6Dec 28, 2022 06:3123,27041,344,05319,455,0001,023,0002,281,472
7Dec 28, 2022 06:3123,36442,799,69419,532,0001,028,0002,281,472
8Dec 28, 2022 06:3123,36440,557,30120,560,00002,371,584
9Dec 28, 2022 06:3123,43341,774,66319,590,0001,031,0002,379,776
10Dec 28, 2022 06:3123,46342,874,58019,615,0001,032,0002,363,392
11Dec 28, 2022 06:3123,49846,008,78720,678,00002,375,680
12Dec 28, 2022 06:3123,52846,651,50119,670,0001,035,0002,281,472