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 19, 2026 10:57Josu San MartinJosu San MartinScore: 11,837Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 11:0211,00920,764,6568,683,0001,005,0002,117,632
2May 19, 2026 11:0211,06320,725,8808,678,0001,058,0002,117,632
3May 19, 2026 11:0211,14418,881,1428,753,0001,054,0002,117,632
4May 19, 2026 11:0211,51922,049,54310,137,00002,117,632
5May 19, 2026 11:0211,83720,048,4489,410,0001,007,0002,117,632
6May 19, 2026 11:0212,34222,727,0359,801,0001,060,0002,113,536
7May 19, 2026 11:0212,58621,413,65210,023,0001,053,0002,113,536
8May 19, 2026 11:0213,08621,979,18710,513,0001,003,0002,113,536
9May 19, 2026 11:0225,01232,578,70720,994,0001,017,0002,113,536