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 5, 2026 17:19vahookvahookScore: 3,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 17:193,42617,543,1831,005,0002,010,0002,494,464
2Feb 5, 2026 17:193,45520,869,4041,013,0002,027,0002,494,464
3Feb 5, 2026 17:193,48225,732,9931,021,0002,043,0002,502,656
4Feb 5, 2026 17:193,48424,495,6621,022,0002,044,0002,498,560
5Feb 5, 2026 17:193,48524,825,6511,022,0002,045,0002,498,560
6Feb 5, 2026 17:193,48821,381,8431,023,0002,046,0002,277,376
7Feb 5, 2026 17:193,48922,343,5261,023,0002,047,0002,494,464
8Feb 5, 2026 17:193,48920,903,6071,023,0002,047,0002,494,464
9Feb 5, 2026 17:193,49817,902,9891,026,0002,052,0002,498,560
10Feb 5, 2026 17:193,51817,407,8861,032,0002,064,0002,535,424
11Feb 5, 2026 17:193,51822,236,8321,032,0002,064,0002,498,560
12Feb 5, 2026 17:193,52615,621,9691,034,0002,069,0002,494,464