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 2, 2025 23:33vahookvahookScore: 6,797,893Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2025 23:336,747,2925,964,274,0305,935,618,0001,999,0002,289,664
2Jun 2, 2025 23:336,758,1005,978,069,9245,946,129,000999,0002,277,376
3Jun 2, 2025 23:336,774,8635,986,146,2005,960,880,000999,0002,285,568
4Jun 2, 2025 23:336,791,9186,007,360,4745,974,889,0001,999,0002,277,376
5Jun 2, 2025 23:336,797,8936,014,419,4925,980,148,0001,998,0002,277,376
6Jun 2, 2025 23:336,798,1096,011,673,0995,980,337,0001,999,0002,277,376
7Jun 2, 2025 23:336,801,1906,010,949,1425,984,048,000999,0002,277,376
8Jun 2, 2025 23:336,820,8206,031,003,2106,000,323,0001,999,0002,281,472
9Jun 2, 2025 23:336,828,3196,039,399,3546,007,922,000999,0002,363,392