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 listFeb 7, 2026 04:35zielajzielajScore: 3,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:343,34219,449,6001,961,000980,0002,347,008
2Feb 7, 2026 04:343,34318,539,3532,942,00002,342,912
3Feb 7, 2026 04:343,36621,512,5351,975,000987,0002,355,200
4Feb 7, 2026 04:343,38524,709,9411,986,000993,0002,347,008
5Feb 7, 2026 04:343,39520,890,627996,0001,992,0002,510,848
6Feb 7, 2026 04:343,39721,148,9561,993,000996,0002,342,912
7Feb 7, 2026 04:343,40619,202,3931,998,000999,0002,347,008
8Feb 7, 2026 04:343,41020,170,8431,000,0002,001,0002,351,104
9Feb 7, 2026 04:343,41419,531,9512,003,0001,001,0002,347,008
10Feb 7, 2026 04:343,44017,752,0121,009,0002,018,0002,347,008
11Feb 7, 2026 04:353,46521,152,2661,016,0002,033,0002,359,296
12Feb 7, 2026 04:343,48819,294,0021,023,0002,046,0002,351,104
13Feb 7, 2026 04:353,50821,203,0051,029,0002,058,0002,347,008
14Feb 7, 2026 04:344,26520,701,7283,753,00002,338,816
15Feb 7, 2026 04:354,41618,460,0141,943,0001,943,0002,453,504