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 14:44Victor MerckléVictor MerckléScore: 3,397Success
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 14:483,30011,076,7562,904,00002,117,632stderr
2Aug 29, 2026 14:483,30411,109,2202,908,00002,117,632stderr
3Aug 29, 2026 14:483,30411,102,7662,908,00002,117,632stderr
4Aug 29, 2026 14:483,31311,124,1262,916,00002,117,632stderr
5Aug 29, 2026 14:483,39711,149,8042,990,00002,117,632stderr
6Aug 29, 2026 14:483,41211,204,7683,003,00002,117,632stderr
7Aug 29, 2026 14:483,41311,206,0483,004,00002,117,632stderr
8Aug 29, 2026 14:483,41411,183,9533,005,00002,117,632stderr
9Aug 29, 2026 14:483,44011,148,7443,028,00002,117,632stderr