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 09:57Victor MerckléVictor MerckléScore: 3,312Success
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 10:003,21811,089,8192,832,00002,117,632stderr
2Aug 29, 2026 10:003,22111,074,0542,835,00002,117,632stderr
3Aug 29, 2026 10:003,23111,045,1052,844,00002,117,632stderr
4Aug 29, 2026 10:003,23211,076,4472,845,00002,117,632stderr
5Aug 29, 2026 10:003,31210,994,6452,915,00002,117,632stderr
6Aug 29, 2026 10:003,32011,073,9662,922,00002,117,632stderr
7Aug 29, 2026 10:003,32211,046,4072,924,00002,117,632stderr
8Aug 29, 2026 10:003,33411,750,1632,934,00002,117,632stderr
9Aug 29, 2026 10:003,33513,051,4952,935,00002,117,632stderr