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 21, 2026 10:51Dominique GarmierDominique GarmierScore: 2,278,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 10:512,277,1262,034,901,6392,001,873,0001,998,0002,392,064
2Mar 21, 2026 10:512,278,7362,043,938,5522,002,293,0002,995,0002,510,848
3Mar 21, 2026 10:512,279,7232,032,935,9662,005,157,000999,0002,510,848