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 10:38Dominique GarmierDominique GarmierScore: 19,718Success
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 10:3819,65348,979,21115,261,0002,034,0002,510,848
2Mar 19, 2026 10:3819,71838,649,62415,311,0002,041,0002,359,296
3Mar 19, 2026 10:3819,77443,469,75715,354,0002,047,0002,330,624