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 listJan 17, 2025 21:05matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2025 21:0400000Error: expected "51384707094828 ", got "51384707094535 "stderr
2Jan 17, 2025 21:0417,02632,419,80911,987,0002,996,0002,383,872
3Jan 17, 2025 21:0517,07632,447,95413,024,0002,003,0002,473,984
4Jan 17, 2025 21:0417,09329,236,26013,037,0002,005,0002,400,256
5Jan 17, 2025 21:0517,16332,206,78512,083,0003,020,0002,428,928
6Jan 17, 2025 21:0517,22535,937,44812,127,0003,031,0002,281,472
7Jan 17, 2025 21:0417,26428,971,98312,154,0003,038,0002,490,368