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:54zielajzielajScore: 3,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 01:553,32217,153,2611,949,000974,0002,342,912
2Feb 8, 2026 01:553,34516,902,1592,944,00002,347,008
3Feb 8, 2026 01:543,34820,663,0502,946,00002,351,104
4Feb 8, 2026 01:553,38016,146,0421,983,000991,0002,523,136
5Feb 8, 2026 01:543,41323,491,0582,002,0001,001,0002,342,912
6Feb 8, 2026 01:553,42017,017,5082,007,0001,003,0002,347,008
7Feb 8, 2026 01:553,43117,910,5191,006,0002,013,0002,387,968
8Feb 8, 2026 01:553,45118,294,2422,025,0001,012,0002,273,280
9Feb 8, 2026 01:553,45318,667,1542,026,0001,013,0002,351,104
10Feb 8, 2026 01:543,48217,097,6172,043,0001,021,0002,351,104
11Feb 8, 2026 01:543,48223,973,5722,043,0001,021,0002,338,816
12Feb 8, 2026 01:553,52817,362,9761,035,0002,070,0002,342,912
13Feb 8, 2026 01:553,56017,041,9421,044,0002,089,0002,342,912
14Feb 8, 2026 01:543,90717,089,6443,438,00002,498,560
15Feb 8, 2026 01:544,28418,007,1323,770,00002,523,136