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 17, 2023 09:53Kenneth MaplesKenneth MaplesScore: 61,717Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2023 09:5355,060134,318,51148,452,73802,260,992
2Dec 17, 2023 09:5355,185103,344,73748,563,19702,256,896
3Dec 17, 2023 09:5355,279127,253,52948,645,94102,260,992
4Dec 17, 2023 09:5361,65575,521,89552,247,0002,009,0002,281,472
5Dec 17, 2023 09:5361,65675,973,26952,248,0002,009,0002,371,584
6Dec 17, 2023 09:5361,70681,596,97452,290,0002,011,0002,269,184
7Dec 17, 2023 09:5361,71777,297,09952,300,0002,011,0002,281,472
8Dec 17, 2023 09:5361,72277,699,38152,304,0002,011,0002,281,472
9Dec 17, 2023 09:5361,73584,039,04952,315,0002,012,0002,281,472
10Dec 17, 2023 09:5361,75380,941,76453,337,0001,006,0002,273,280
11Dec 17, 2023 09:5361,81379,640,85653,388,0001,007,0002,269,184
12Dec 17, 2023 09:5361,93284,210,14053,491,0001,009,0002,281,472