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 listMar 20, 2026 18:54Yuriy LyfenkoYuriy LyfenkoScore: 11,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 18:5411,26122,816,0368,809,0001,101,0002,527,232
2Mar 20, 2026 18:5411,28129,556,5548,935,000992,0002,531,328
3Mar 20, 2026 18:5411,33025,246,9808,973,000997,0002,531,328
4Mar 20, 2026 18:5411,36426,607,3549,000,0001,000,0002,531,328
5Mar 20, 2026 18:5411,41122,879,3369,038,0001,004,0002,269,184
6Mar 20, 2026 18:5411,41531,110,6468,036,0002,009,0002,428,928
7Mar 20, 2026 18:5411,41731,584,7439,043,0001,004,0002,433,024
8Mar 20, 2026 18:5411,42028,030,3498,040,0002,010,0002,269,184
9Mar 20, 2026 18:5411,50725,511,5249,114,0001,012,0002,424,832