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 2, 2026 04:17Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2026 04:20011,127,3072,999,00002,117,632expected "51402316767120 ", got "51404464250761 "stderr
2Aug 2, 2026 04:203,30211,095,9312,906,00002,117,632stderr
3Aug 2, 2026 04:203,31311,179,8672,916,00002,117,632stderr
4Aug 2, 2026 04:203,39011,779,1262,984,00002,117,632stderr
5Aug 2, 2026 04:203,41911,121,3353,009,00002,117,632stderr
6Aug 2, 2026 04:203,42111,183,4993,011,00002,117,632stderr
7Aug 2, 2026 04:203,42711,748,6493,016,00002,117,632stderr
8Aug 2, 2026 04:203,43011,212,0633,019,00002,117,632stderr
9Aug 2, 2026 04:203,45311,208,3463,039,00002,117,632stderr