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 listApr 15, 2026 09:11limanjun99limanjun99Score: 23,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 09:1123,39847,649,44519,561,0001,029,0002,453,504
2Apr 15, 2026 09:1123,44445,070,51119,600,0001,031,0002,437,120
3Apr 15, 2026 09:1123,55751,422,33219,694,0001,036,0002,433,024