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 08:59Victor MerckléVictor MerckléScore: 5,695Success
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 09:035,60513,267,0354,933,00002,117,632stderr
2Aug 29, 2026 09:035,63113,279,0024,956,00002,117,632stderr
3Aug 29, 2026 09:035,63913,303,7054,963,00002,117,632stderr
4Aug 29, 2026 09:035,68913,715,3275,007,00002,117,632stderr
5Aug 29, 2026 09:035,69513,200,3695,012,00002,117,632stderr
6Aug 29, 2026 09:035,69713,243,1605,014,00002,117,632stderr
7Aug 29, 2026 09:035,69813,212,7185,015,00002,117,632stderr
8Aug 29, 2026 09:035,71413,211,7365,029,00002,117,632stderr
9Aug 29, 2026 09:035,72013,237,1625,034,00002,117,632stderr