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 listApr 19, 2026 00:07Victor MerckléVictor MerckléScore: 3,456,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 19, 2026 00:073,439,8443,061,972,1833,023,066,0003,997,0002,281,472
2Apr 19, 2026 00:073,456,5663,072,419,0313,038,780,0002,998,0002,379,776
3Apr 19, 2026 00:073,457,7703,069,841,3723,038,840,0003,998,0002,375,680