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 listSep 2, 2026 01:23Victor MerckléVictor MerckléScore: 3,159Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 01:263,13511,005,2842,759,00002,117,632stderr
2Sep 2, 2026 01:263,14010,983,4282,764,00002,117,632stderr
3Sep 2, 2026 01:263,15211,057,3502,774,00002,117,632stderr
4Sep 2, 2026 01:263,15911,011,5072,780,00002,117,632stderr
5Sep 2, 2026 01:263,15911,015,8422,780,00002,117,632stderr
6Sep 2, 2026 01:263,16011,015,5652,781,00002,117,632stderr
7Sep 2, 2026 01:263,18211,056,8572,801,00002,117,632stderr
8Sep 2, 2026 01:263,25211,662,4452,862,00002,117,632stderr
9Sep 2, 2026 01:263,26011,070,2842,869,00002,117,632stderr