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 2, 2026 15:02Victor MerckléVictor MerckléScore: 3,209Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 15:043,10510,959,5662,733,00002,117,632stderr
2Sep 2, 2026 15:043,11410,948,6172,741,00002,117,632stderr
3Sep 2, 2026 15:043,18911,638,1552,807,00002,117,632stderr
4Sep 2, 2026 15:043,20411,554,4242,820,00002,117,632stderr
5Sep 2, 2026 15:043,20911,029,4572,824,00002,117,632stderr
6Sep 2, 2026 15:043,20912,815,6982,824,00002,117,632stderr
7Sep 2, 2026 15:043,21511,558,7852,830,00002,117,632stderr
8Sep 2, 2026 15:043,21510,957,2152,830,00002,117,632stderr
9Sep 2, 2026 15:043,22211,584,9562,836,00002,117,632stderr