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 listMay 21, 2026 23:57Josu San MartinJosu San MartinScore: 102,096Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:00101,43199,497,95688,160,0001,100,0002,113,536
2May 22, 2026 00:00101,72799,323,42688,414,0001,106,0002,113,536
3May 22, 2026 00:00101,829101,849,00688,504,0001,106,0002,113,536
4May 22, 2026 00:00101,964102,456,62088,609,0001,120,0002,113,536
5May 22, 2026 00:00102,096101,615,94188,725,0001,120,0002,113,536
6May 22, 2026 00:00102,37399,778,71589,062,0001,027,0002,113,536
7May 22, 2026 00:00102,53499,513,71189,216,0001,014,0002,113,536
8May 22, 2026 00:00102,717101,577,45489,263,0001,128,0002,113,536
9May 22, 2026 00:00102,90599,953,06889,341,0001,216,0002,113,536