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 listFeb 8, 2026 01:54zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:51M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5109,168,2391,028,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:5108,612,7371,032,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:51010,506,3101,036,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 8, 2026 01:553,32217,153,2611,949,000974,0002,342,912
5Feb 8, 2026 01:553,34516,902,1592,944,00002,347,008
6Feb 8, 2026 01:543,34820,663,0502,946,00002,351,104
7Feb 8, 2026 01:553,38016,146,0421,983,000991,0002,523,136
8Feb 8, 2026 01:543,41323,491,0582,002,0001,001,0002,342,912
9Feb 8, 2026 01:553,42017,017,5082,007,0001,003,0002,347,008
10Feb 8, 2026 01:553,43117,910,5191,006,0002,013,0002,387,968
11Feb 8, 2026 01:553,45118,294,2422,025,0001,012,0002,273,280
12Feb 8, 2026 01:553,45318,667,1542,026,0001,013,0002,351,104
13Feb 8, 2026 01:543,48217,097,6172,043,0001,021,0002,351,104
14Feb 8, 2026 01:543,48223,973,5722,043,0001,021,0002,338,816
15Feb 8, 2026 01:553,52817,362,9761,035,0002,070,0002,342,912
16Feb 8, 2026 01:553,56017,041,9421,044,0002,089,0002,342,912
17Feb 8, 2026 01:543,90717,089,6443,438,00002,498,560
18Feb 8, 2026 01:544,28418,007,1323,770,00002,523,136