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 14, 2026 15:48Dominique GarmierDominique GarmierScore: 54,135Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:4853,88476,096,24346,410,0001,008,0002,387,968
2Mar 14, 2026 15:4854,13571,068,99546,626,0001,013,0002,387,968
3Mar 14, 2026 15:4854,15075,364,35446,639,0001,013,0002,387,968