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 listJan 17, 2026 05:31Josu San MartinJosu San MartinScore: 42,765Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:3142,59359,522,97636,469,0001,013,0002,281,472
2Jan 17, 2026 05:3142,71063,686,08936,570,0001,015,0002,445,312
3Jan 17, 2026 05:3142,71558,573,32737,589,00002,441,216
4Jan 17, 2026 05:3142,75660,984,05736,609,0001,016,0002,281,472
5Jan 17, 2026 05:3142,76557,960,59036,616,0001,017,0002,277,376
6Jan 17, 2026 05:3142,78066,560,28136,629,0001,017,0002,281,472
7Jan 17, 2026 05:3142,80759,187,64637,670,00002,281,472
8Jan 17, 2026 05:3142,86460,795,06937,720,00002,453,504
9Jan 17, 2026 05:3142,89066,665,21236,723,0001,020,0002,281,472