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 listMar 19, 2026 05:33limanjun99limanjun99Score: 25,751Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 05:3325,66445,057,64321,558,0001,026,0002,469,888
2Mar 19, 2026 05:3325,75143,319,64921,631,0001,030,0002,318,336
3Mar 19, 2026 05:3325,99148,569,76419,889,0002,983,0002,469,888