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 20, 2026 00:32Josu San MartinJosu San MartinScore: 18,394Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 00:3518,15325,140,63815,975,00002,113,536
2May 20, 2026 00:3518,21226,005,80616,027,00002,113,536
3May 20, 2026 00:3518,26325,850,33416,072,00002,113,536
4May 20, 2026 00:3518,27926,110,02816,086,00002,113,536
5May 20, 2026 00:3518,39425,842,52916,187,00002,113,536
6May 20, 2026 00:3518,40527,026,87516,197,00002,113,536
7May 20, 2026 00:3518,49627,907,69916,277,00002,113,536
8May 20, 2026 00:3518,62126,462,11916,387,00002,113,536
9May 20, 2026 00:3518,97326,477,86916,697,00002,113,536