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 17:43Victor MerckléVictor MerckléScore: 3,136Success
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 17:463,04210,852,1602,677,00002,117,632stderr
2Aug 29, 2026 17:463,04710,885,9542,682,00002,117,632stderr
3Aug 29, 2026 17:463,13010,956,3792,755,00002,117,632stderr
4Aug 29, 2026 17:463,13410,867,3702,758,00002,117,632stderr
5Aug 29, 2026 17:463,13610,893,9072,760,00002,117,632stderr
6Aug 29, 2026 17:463,13910,915,5912,763,00002,117,632stderr
7Aug 29, 2026 17:463,14211,538,5802,765,00002,117,632stderr
8Aug 29, 2026 17:463,15111,476,2652,773,00002,117,632stderr
9Aug 29, 2026 17:463,15311,582,8932,775,00002,117,632stderr