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 17:21Victor MerckléVictor MerckléScore: 3,106Success
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 17:283,02610,865,0102,663,00002,117,632stderr
2Aug 29, 2026 17:283,03010,898,1722,667,00002,117,632stderr
3Aug 29, 2026 17:283,03010,890,5602,667,00002,117,632stderr
4Aug 29, 2026 17:283,04310,864,3542,678,00002,117,632stderr
5Aug 29, 2026 17:283,10611,002,5792,734,00002,117,632stderr
6Aug 29, 2026 17:283,11910,866,9102,745,00002,117,632stderr
7Aug 29, 2026 17:283,12610,901,6012,751,00002,117,632stderr
8Aug 29, 2026 17:283,13610,863,2232,760,00002,117,632stderr
9Aug 29, 2026 17:283,14210,862,3612,765,00002,117,632stderr