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 1, 2026 23:25Victor MerckléVictor MerckléScore: 3,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 1, 2026 23:343,11010,957,3872,737,00002,117,632stderr
2Sep 1, 2026 23:343,11312,207,8842,740,00002,117,632stderr
3Sep 1, 2026 23:343,12010,983,2082,746,00002,117,632stderr
4Sep 1, 2026 23:343,12610,982,8852,751,00002,117,632stderr
5Sep 1, 2026 23:343,13810,965,5272,762,00002,117,632stderr
6Sep 1, 2026 23:343,20911,116,7102,824,00002,117,632stderr
7Sep 1, 2026 23:343,22311,006,6692,837,00002,117,632stderr
8Sep 1, 2026 23:343,22611,018,6772,839,00002,117,632stderr
9Sep 1, 2026 23:343,24611,026,5432,857,00002,117,632stderr