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 20:57Pavel SkripkinPavel SkripkinScore: 110,129Success
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 20:58108,286109,466,77794,289,0001,003,0002,441,216
2Apr 24, 2026 20:58108,465111,800,50394,446,0001,004,0002,428,928
3Apr 24, 2026 20:58108,782113,187,48494,722,0001,007,0002,428,928
4Apr 24, 2026 20:58110,122110,497,64894,910,0001,998,0002,433,024
5Apr 24, 2026 20:58110,129112,760,12395,915,000999,0002,424,832
6Apr 24, 2026 20:58110,160113,012,42494,943,0001,998,0002,433,024
7Apr 24, 2026 20:58110,253117,419,64495,023,0002,000,0002,433,024
8Apr 24, 2026 20:58110,282116,205,72895,048,0002,001,0002,424,832
9Apr 24, 2026 20:58110,515113,201,40596,252,0001,002,0002,433,024