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 24, 2026 21:39Pavel SkripkinPavel SkripkinScore: 101,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 21:39101,634101,912,38288,434,0001,004,0002,437,120
2Apr 24, 2026 21:39101,635106,854,18488,435,0001,004,0002,428,928
3Apr 24, 2026 21:39101,706109,217,55488,497,0001,005,0002,437,120
4Apr 24, 2026 21:39101,728106,585,53788,516,0001,005,0002,330,624
5Apr 24, 2026 21:39101,732103,070,33188,520,0001,005,0002,428,928
6Apr 24, 2026 21:39101,735105,510,76688,522,0001,005,0002,433,024
7Apr 24, 2026 21:39101,787106,421,98989,573,00002,326,528
8Apr 24, 2026 21:39101,911102,649,20588,675,0001,007,0002,330,624
9Apr 24, 2026 21:39101,970110,471,20788,726,0001,008,0002,433,024