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:45Josu San MartinJosu San MartinScore: 45,092Success
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:4744,88058,629,38239,494,00002,453,504
2Jan 17, 2026 05:4744,90361,115,12238,502,0001,013,0002,433,024
3Jan 17, 2026 05:4545,01561,733,18538,598,0001,015,0002,449,408
4Jan 17, 2026 05:4545,09262,007,43938,664,0001,017,0002,285,568
5Jan 17, 2026 05:4745,15567,226,08438,718,0001,018,0002,383,872
6Jan 17, 2026 05:4545,18166,774,02238,740,0001,019,0002,449,408