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 listNov 26, 2025 12:55aichi-futagawaaichi-futagawaScore: 391,425Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2025 12:55390,703370,194,151340,821,0002,998,0002,289,664
2Nov 26, 2025 12:55390,798371,993,295340,903,0002,999,0002,514,944
3Nov 26, 2025 12:55391,257366,037,966342,305,0002,001,0002,514,944
4Nov 26, 2025 12:55391,258370,853,130341,305,0003,002,0002,289,664
5Nov 26, 2025 12:55391,425365,918,732342,452,0002,002,0002,506,752
6Nov 26, 2025 12:55391,499365,507,586343,518,0001,001,0002,506,752
7Nov 26, 2025 12:55391,627371,556,257341,627,0003,005,0002,289,664
8Nov 26, 2025 12:55391,851366,945,794342,825,0002,004,0002,519,040
9Nov 26, 2025 12:55392,213374,542,533342,146,0003,001,0002,289,664