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 listJul 18, 2025 17:59vahookvahookScore: 14,367Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2025 17:5914,29231,327,83112,577,00002,428,928
2Jul 18, 2025 17:5914,33325,798,99312,613,00002,433,024
3Jul 18, 2025 17:5914,34929,870,65412,627,00002,486,272
4Jul 18, 2025 17:5914,35229,757,56612,630,00002,478,080
5Jul 18, 2025 17:5914,36729,119,51912,643,00002,273,280
6Jul 18, 2025 17:5914,46528,130,92512,729,00002,490,368
7Jul 18, 2025 17:5914,48434,728,96412,746,00002,482,176
8Jul 18, 2025 17:5914,51533,186,69412,773,00002,420,736
9Jul 18, 2025 17:5914,67533,495,99811,921,000993,0002,469,888