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 listFeb 4, 2026 00:17vahookvahookScore: 3,852Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 00:173,83918,384,5642,252,0001,126,0002,535,424
2Feb 4, 2026 00:173,85217,314,5902,260,0001,130,0002,486,272
3Feb 4, 2026 00:173,91016,798,9262,294,0001,147,0002,535,424