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 listJul 3, 2026 02:47Victor MerckléVictor MerckléScore: 4,546Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 02:514,49511,702,4883,956,00002,117,632stderr
2Jul 3, 2026 02:514,53511,664,2553,991,00002,117,632stderr
3Jul 3, 2026 02:514,54512,011,6074,000,00002,117,632stderr
4Jul 3, 2026 02:514,54612,084,5974,001,00002,117,632stderr
5Jul 3, 2026 02:514,54611,685,0534,001,00002,117,632stderr
6Jul 3, 2026 02:514,55412,024,2864,008,00002,117,632stderr
7Jul 3, 2026 02:514,57111,937,6404,023,00002,117,632stderr
8Jul 3, 2026 02:514,84611,978,8774,265,00002,117,632stderr
9Jul 3, 2026 02:514,92812,349,1234,337,00002,117,632stderr