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 23, 2026 10:44Dominique GarmierDominique GarmierScore: 27,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 10:4427,15855,422,40722,904,000995,0002,355,200
2Mar 23, 2026 10:4427,16454,012,36821,912,0001,992,0002,359,296
3Mar 23, 2026 10:4427,20944,036,20621,949,0001,995,0002,351,104