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 20:35zielajzielajScore: 3,475Success
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 20:363,32518,168,4251,951,000975,0002,387,968
2Feb 8, 2026 20:363,33917,182,8411,959,000979,0002,392,064
3Feb 8, 2026 20:363,35120,331,1301,966,000983,0002,396,160
4Feb 8, 2026 20:353,37621,431,8681,981,000990,0002,396,160
5Feb 8, 2026 20:353,38016,148,1241,983,000991,0002,392,064
6Feb 8, 2026 20:353,39021,745,3481,989,000994,0002,387,968
7Feb 8, 2026 20:363,47522,863,7612,039,0001,019,0002,396,160
8Feb 8, 2026 20:353,47720,738,7301,020,0002,040,0002,392,064
9Feb 8, 2026 20:363,51921,573,8952,065,0001,032,0002,396,160
10Feb 8, 2026 20:353,65820,113,0002,146,0001,073,0002,387,968
11Feb 8, 2026 20:364,19922,840,5833,695,00002,387,968
12Feb 8, 2026 20:354,26525,316,7073,753,00002,387,968