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 13, 2026 16:18Dominique GarmierDominique GarmierScore: 67,856Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 16:1867,67582,430,51459,554,00002,289,664
2Mar 13, 2026 16:1867,85687,092,44858,701,0001,012,0002,396,160
3Mar 13, 2026 16:1868,10087,653,27157,931,0001,997,0002,277,376