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 22, 2026 00:57Josu San MartinJosu San MartinScore: 12,079Success
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:5912,04619,804,8678,506,0002,095,0002,117,632
2May 22, 2026 00:5912,06922,630,0208,527,0002,094,0002,113,536
3May 22, 2026 00:5912,07021,635,0078,493,0002,129,0002,117,632
4May 22, 2026 00:5912,07721,097,8558,547,0002,081,0002,117,632
5May 22, 2026 00:5912,07921,858,5528,546,0002,084,0002,117,632
6May 22, 2026 00:5912,09522,755,8388,536,0002,108,0002,117,632
7May 22, 2026 00:5912,10121,753,0108,550,0002,099,0002,117,632
8May 22, 2026 00:5912,13820,984,0358,590,0002,092,0002,113,536
9May 22, 2026 00:5912,31420,041,1328,516,0002,321,0002,117,632