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 listAug 29, 2026 15:29Victor MerckléVictor MerckléScore: 3,288Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 15:323,17811,018,2182,797,00002,117,632stderr
2Aug 29, 2026 15:323,18410,999,1852,802,00002,117,632stderr
3Aug 29, 2026 15:323,27010,993,3772,878,00002,117,632stderr
4Aug 29, 2026 15:323,28110,980,6362,888,00002,117,632stderr
5Aug 29, 2026 15:323,28811,579,8112,894,00002,117,632stderr
6Aug 29, 2026 15:323,29611,641,7882,901,00002,117,632stderr
7Aug 29, 2026 15:323,30011,015,8572,904,00002,117,632stderr
8Aug 29, 2026 15:323,30211,146,6612,906,00002,117,632stderr
9Aug 29, 2026 15:323,30311,056,2062,907,00002,117,632stderr