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:42Josu San MartinJosu San MartinScore: 52,436Success
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:4752,24255,173,59443,934,0002,039,0002,113,536
2May 22, 2026 00:4752,27956,072,09543,934,0002,072,0002,113,536
3May 22, 2026 00:4752,29255,224,20043,986,0002,031,0002,113,536
4May 22, 2026 00:4752,32656,957,19543,998,0002,049,0002,113,536
5May 22, 2026 00:4752,43655,296,58744,076,0002,068,0002,113,536
6May 22, 2026 00:4752,47259,270,29544,110,0002,066,0002,113,536
7May 22, 2026 00:4752,51055,428,72644,151,0002,058,0002,113,536
8May 22, 2026 00:4752,53857,126,70944,187,0002,047,0002,113,536
9May 22, 2026 00:4752,54555,406,88844,191,0002,049,0002,113,536