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 listJul 13, 2025 23:08vahookvahookScore: 81,919Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2025 23:0881,77798,199,39470,965,000999,0002,273,280
2Jul 13, 2025 23:0881,89797,780,70271,069,0001,000,0002,273,280
3Jul 13, 2025 23:0881,90093,720,00371,071,0001,001,0002,273,280
4Jul 13, 2025 23:0881,90393,418,27371,074,0001,001,0002,494,464
5Jul 13, 2025 23:0881,919107,921,59771,088,0001,001,0002,273,280
6Jul 13, 2025 23:0881,98698,805,77971,146,0001,002,0002,498,560
7Jul 13, 2025 23:0882,04091,889,06472,195,00002,494,464
8Jul 13, 2025 23:0882,10895,837,46372,255,00002,494,464
9Jul 13, 2025 23:0882,24493,542,17672,375,00002,506,752