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 27, 2026 11:16Pavel SkripkinPavel SkripkinScore: 40,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 11:1739,90152,601,46733,107,0002,006,0002,424,832
2Apr 27, 2026 11:1739,98050,136,44134,178,0001,005,0002,433,024
3Apr 27, 2026 11:1740,00952,340,25534,203,0001,005,0002,433,024
4Apr 27, 2026 11:1740,14852,846,78834,322,0001,009,0002,326,528
5Apr 27, 2026 11:1740,27255,679,41834,428,0001,012,0002,424,832
6Apr 27, 2026 11:1740,29452,845,55134,446,0001,013,0002,437,120
7Apr 27, 2026 11:1740,30148,782,13934,452,0001,013,0002,428,928
8Apr 27, 2026 11:1740,30251,233,48034,453,0001,013,0002,424,832
9Apr 27, 2026 11:1740,49049,953,35834,614,0001,018,0002,433,024