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 listSep 23, 2026 17:28Matthias GörgensMatthias GörgensScore: 68,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 23, 2026 17:2868,27670,414,05659,020,0001,063,0002,113,536
2Sep 23, 2026 17:2868,37870,414,55759,098,0001,075,0002,113,536
3Sep 23, 2026 17:2868,55070,617,81759,257,0001,067,0002,113,536