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 listJan 17, 2026 15:17Josu San MartinJosu San MartinScore: 20,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:1720,19247,633,73316,724,0001,045,0002,363,392
2Jan 17, 2026 15:1720,34545,435,21615,915,0001,989,0002,523,136
3Jan 17, 2026 15:1720,35239,935,23115,920,0001,990,0002,523,136
4Jan 17, 2026 15:1720,35340,344,85316,916,000995,0002,457,600
5Jan 17, 2026 15:1720,35341,212,10014,926,0002,985,0002,449,408
6Jan 17, 2026 15:1720,35842,968,44816,920,000995,0002,453,504
7Jan 17, 2026 15:1720,40038,034,21116,955,000997,0002,514,944
8Jan 17, 2026 15:1720,40339,445,15714,963,0002,992,0002,453,504
9Jan 17, 2026 15:1720,43938,910,11714,989,0002,997,0002,453,504