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 20, 2024 13:41zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 13:4100000Error: expected "51029748738625 ", got "51030556952786 "stderr
2Dec 20, 2024 13:414,22723,106,8792,480,0001,240,0002,523,136
3Dec 20, 2024 13:414,23817,009,8722,486,0001,243,0002,265,088
4Dec 20, 2024 13:414,25824,359,9632,498,0001,249,0002,273,280
5Dec 20, 2024 13:414,26617,080,3852,503,0001,251,0002,363,392
6Dec 20, 2024 13:414,27617,857,7812,509,0001,254,0002,269,184
7Dec 20, 2024 13:414,30021,330,2122,523,0001,261,0002,535,424
8Dec 20, 2024 13:414,45619,879,4532,941,000980,0002,351,104
9Dec 20, 2024 13:414,48419,696,7501,973,0001,973,0002,273,280
10Dec 20, 2024 13:414,54221,172,9562,998,000999,0002,277,376