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 17:49Josu San MartinJosu San MartinScore: 5,595Success
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 17:515,51712,404,9354,855,00002,113,536
2Jun 22, 2026 17:515,57712,317,3964,908,00002,113,536
3Jun 22, 2026 17:515,58812,377,6974,918,00002,113,536
4Jun 22, 2026 17:515,59312,363,8114,922,00002,113,536
5Jun 22, 2026 17:515,59512,368,3364,924,00002,113,536
6Jun 22, 2026 17:515,59512,851,4224,924,00002,113,536
7Jun 22, 2026 17:515,60712,662,4114,935,00002,113,536
8Jun 22, 2026 17:515,61212,685,4524,939,00002,113,536
9Jun 22, 2026 17:515,62312,385,4244,949,00002,113,536