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 20, 2026 15:16BenBenScore: 137,486Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 15:19137,302150,558,029117,831,0002,995,0002,428,928
2Apr 20, 2026 15:19137,486136,575,559116,989,0003,999,0002,281,472
3Apr 20, 2026 15:19137,573144,509,012117,063,0004,002,0002,445,312