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 listApr 23, 2026 21:38Pavel SkripkinPavel SkripkinScore: 184,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 21:38184,003181,053,458159,924,0001,999,0002,363,392
2Apr 23, 2026 21:38184,142178,606,415160,045,0002,000,0002,326,528
3Apr 23, 2026 21:38184,161175,671,508161,062,0001,000,0002,318,336
4Apr 23, 2026 21:38184,310177,487,084161,192,0001,001,0002,449,408
5Apr 23, 2026 21:38184,411184,908,578161,281,0001,001,0002,326,528
6Apr 23, 2026 21:38184,421177,146,507161,290,0001,001,0002,342,912
7Apr 23, 2026 21:38184,529179,103,415161,384,0001,002,0002,347,008
8Apr 23, 2026 21:38186,468179,898,166163,092,0001,000,0002,334,720
9Apr 23, 2026 21:38186,528182,267,187163,145,0001,000,0002,351,104