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 03:46Victor MerckléVictor MerckléScore: 3,700Success
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 03:493,59311,295,3103,162,00002,117,632stderr
2Aug 2, 2026 03:493,59511,381,0333,164,00002,117,632stderr
3Aug 2, 2026 03:493,60511,402,0493,173,00002,117,632stderr
4Aug 2, 2026 03:493,69811,614,1803,255,00002,117,632stderr
5Aug 2, 2026 03:493,70011,439,8383,256,00002,117,632stderr
6Aug 2, 2026 03:493,70412,009,5533,260,00002,117,632stderr
7Aug 2, 2026 03:493,70912,020,0013,264,00002,117,632stderr
8Aug 2, 2026 03:493,71011,401,1883,265,00002,117,632stderr
9Aug 2, 2026 03:493,91411,580,1342,424,0001,021,0002,117,632stderr