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:11Victor MerckléVictor MerckléScore: 3,135Success
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:153,12611,518,1342,751,00002,117,632stderr
2Aug 29, 2026 17:153,13111,532,0302,756,00002,117,632stderr
3Aug 29, 2026 17:153,13210,899,9582,757,00002,117,632stderr
4Aug 29, 2026 17:153,13210,919,7702,757,00002,117,632stderr
5Aug 29, 2026 17:153,13510,988,8462,759,00002,117,632stderr
6Aug 29, 2026 17:153,13810,863,8662,762,00002,117,632stderr
7Aug 29, 2026 17:153,14011,510,9782,764,00002,117,632stderr
8Aug 29, 2026 17:153,15410,916,3212,776,00002,117,632stderr
9Aug 29, 2026 17:153,15710,873,0492,779,00002,117,632stderr