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 21, 2026 23:49Josu San MartinJosu San MartinScore: 10,125Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 23:5510,01217,736,4707,780,0001,031,0002,117,632
2Jun 21, 2026 23:5510,02117,770,4467,812,0001,007,0002,117,632
3Jun 21, 2026 23:5510,05117,791,7117,809,0001,036,0002,117,632
4Jun 21, 2026 23:5510,10017,826,6307,804,0001,084,0002,117,632
5Jun 21, 2026 23:5510,12517,784,9347,819,0001,091,0002,117,632
6Jun 21, 2026 23:5510,12717,791,9557,812,0001,100,0002,117,632
7Jun 21, 2026 23:5510,14517,727,8757,846,0001,082,0002,113,536
8Jun 21, 2026 23:5510,17817,905,0247,858,0001,099,0002,117,632
9Jun 21, 2026 23:5510,21917,892,9687,899,0001,094,0002,117,632