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 listJun 22, 2026 12:05Josu San MartinJosu San MartinScore: 7,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 12:087,34713,987,8696,466,00002,113,536
2Jun 22, 2026 12:087,47814,476,7376,581,00002,113,536
3Jun 22, 2026 12:087,47814,324,8536,581,00002,113,536
4Jun 22, 2026 12:087,50714,085,0726,607,00002,113,536
5Jun 22, 2026 12:087,54014,143,5556,636,00002,113,536
6Jun 22, 2026 12:087,55914,153,4736,652,00002,113,536
7Jun 22, 2026 12:087,57014,330,0566,662,00002,113,536
8Jun 22, 2026 12:087,72914,342,3816,802,00002,113,536
9Jun 22, 2026 12:087,80114,389,6806,865,00002,113,536