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 listMay 3, 2026 19:11TudyMTudyMScore: 31,321Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 19:1531,18741,868,60026,369,0001,076,0002,375,680
2May 3, 2026 19:1531,20942,017,95226,387,0001,077,0002,371,584
3May 3, 2026 19:1531,23144,324,91326,421,0001,063,0002,371,584
4May 3, 2026 19:1531,25142,400,09326,423,0001,078,0002,367,488
5May 3, 2026 19:1531,32141,147,87526,490,0001,073,0002,375,680
6May 3, 2026 19:1531,35243,829,10126,519,0001,071,0002,371,584
7May 3, 2026 19:1531,39844,159,36326,548,0001,083,0002,367,488
8May 3, 2026 19:1531,39844,461,03626,549,0001,082,0002,375,680
9May 3, 2026 19:1531,43244,007,59426,595,0001,066,0002,359,296