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 listMar 8, 2026 03:15zielajzielajScore: 3,181Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2026 03:153,01720,711,9002,655,00002,437,120
2Mar 8, 2026 03:163,03418,467,2342,670,00002,445,312
3Mar 8, 2026 03:153,04518,259,5472,680,00002,437,120
4Mar 8, 2026 03:153,05621,006,8002,689,00002,445,312
5Mar 8, 2026 03:153,07522,434,1182,706,00002,441,216
6Mar 8, 2026 03:153,08524,349,4762,715,00002,531,328
7Mar 8, 2026 03:153,08616,074,7582,716,00002,445,312
8Mar 8, 2026 03:153,17418,018,9162,793,00002,437,120
9Mar 8, 2026 03:163,18021,491,2042,798,00002,428,928
10Mar 8, 2026 03:163,18118,565,2722,799,00002,441,216
11Mar 8, 2026 03:163,31417,359,5301,944,000972,0002,527,232
12Mar 8, 2026 03:153,32219,921,4511,949,000974,0002,531,328
13Mar 8, 2026 03:153,56920,385,3002,094,0001,047,0002,531,328
14Mar 8, 2026 03:153,59720,335,9622,110,0001,055,0002,437,120
15Mar 8, 2026 03:153,60016,866,5132,112,0001,056,0002,441,216
16Mar 8, 2026 03:163,63117,788,5022,130,0001,065,0002,445,312
17Mar 8, 2026 03:153,67216,546,6723,231,00002,531,328
18Mar 8, 2026 03:163,78316,876,2053,329,00002,441,216