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 01:00Josu San MartinJosu San MartinScore: 8,459Success
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 01:038,41516,354,4306,382,0001,024,0002,117,632
2Jun 22, 2026 01:038,43416,364,8426,414,0001,008,0002,117,632
3Jun 22, 2026 01:038,44816,391,6186,424,0001,011,0002,117,632
4Jun 22, 2026 01:038,44816,389,1346,417,0001,018,0002,117,632
5Jun 22, 2026 01:038,45916,350,8016,428,0001,016,0002,117,632
6Jun 22, 2026 01:038,46716,396,1286,444,0001,007,0002,117,632
7Jun 22, 2026 01:038,47316,433,0006,440,0001,017,0002,117,632
8Jun 22, 2026 01:038,53116,399,5206,422,0001,086,0002,117,632
9Jun 22, 2026 01:038,53216,310,7516,412,0001,097,0002,117,632