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 22:05Josu San MartinJosu San MartinScore: 5,401Success
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 22:085,28212,087,8004,649,00002,113,536
2Jun 22, 2026 22:085,36412,169,3134,721,00002,113,536
3Jun 22, 2026 22:085,37312,510,1624,729,00002,113,536
4Jun 22, 2026 22:085,39212,506,3244,745,00002,113,536
5Jun 22, 2026 22:085,40114,954,9264,753,00002,113,536
6Jun 22, 2026 22:085,40213,265,3954,754,00002,113,536
7Jun 22, 2026 22:085,40312,331,9184,755,00002,113,536
8Jun 22, 2026 22:085,44612,205,3164,793,00002,113,536
9Jun 22, 2026 22:085,83212,626,9285,133,00002,113,536