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 23, 2026 05:23Josu San MartinJosu San MartinScore: 5,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 05:275,16112,067,3344,542,00002,125,824
2Jun 23, 2026 05:275,26412,100,0094,633,00002,125,824
3Jun 23, 2026 05:275,26412,084,4334,633,00002,125,824
4Jun 23, 2026 05:275,27112,376,6744,639,00002,125,824
5Jun 23, 2026 05:275,27212,094,6984,640,00002,125,824
6Jun 23, 2026 05:275,27812,479,9844,645,00002,125,824
7Jun 23, 2026 05:275,28414,113,8344,650,00002,125,824
8Jun 23, 2026 05:275,28612,378,0994,652,00002,125,824
9Jun 23, 2026 05:275,29312,484,4974,658,00002,125,824