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 09:08Josu San MartinJosu San MartinScore: 12,195Success
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 09:1112,03721,764,0439,563,0001,030,0002,113,536
2May 19, 2026 09:1112,06819,885,9579,584,0001,036,0002,113,536
3May 19, 2026 09:1112,08422,027,2709,601,0001,033,0002,113,536
4May 19, 2026 09:1112,18421,510,7369,597,0001,125,0002,113,536
5May 19, 2026 09:1112,19520,985,8089,608,0001,124,0002,113,536
6May 19, 2026 09:1112,25120,720,0009,637,0001,144,0002,113,536
7May 19, 2026 09:1112,25521,473,3319,574,0001,211,0002,113,536
8May 19, 2026 09:1112,30420,062,7139,696,0001,132,0002,113,536
9May 19, 2026 09:1112,32922,127,3959,719,0001,131,0002,113,536