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 00:26Josu San MartinJosu San MartinScore: 8,740Success
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 00:288,63516,538,7056,576,0001,023,0002,117,632
2Jun 22, 2026 00:288,64716,517,1406,602,0001,008,0002,117,632
3Jun 22, 2026 00:288,66016,617,2746,613,0001,008,0002,117,632
4Jun 22, 2026 00:288,73116,579,3536,598,0001,086,0002,117,632
5Jun 22, 2026 00:288,74016,544,1236,612,0001,080,0002,117,632
6Jun 22, 2026 00:288,75316,654,8046,607,0001,096,0002,117,632
7Jun 22, 2026 00:288,75516,583,9156,612,0001,093,0002,117,632
8Jun 22, 2026 00:288,78516,624,0036,618,0001,113,0002,117,632
9Jun 22, 2026 00:288,78516,667,0046,626,0001,105,0002,117,632