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 listJan 18, 2026 05:23Josu San MartinJosu San MartinScore: 11,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 05:2011,27025,018,9456,943,0002,975,0002,281,472
2Jan 18, 2026 05:2311,29924,421,0918,839,0001,104,0002,277,376
3Jan 18, 2026 05:2011,30325,293,1407,737,0002,210,0002,523,136
4Jan 18, 2026 05:2311,30330,725,0437,958,0001,989,0002,265,088
5Jan 18, 2026 05:2311,30732,209,9366,965,0002,985,0002,527,232
6Jan 18, 2026 05:2311,31624,843,5146,971,0002,987,0002,375,680
7Jan 18, 2026 05:2311,34129,368,9747,984,0001,996,0002,379,776
8Jan 18, 2026 05:2311,38823,056,3827,015,0003,006,0002,375,680
9Jan 18, 2026 05:2011,40926,703,9968,032,0002,008,0002,277,376
10Jan 18, 2026 05:2311,41624,177,4477,032,0003,014,0002,527,232
11Jan 18, 2026 05:2311,44426,629,2287,050,0003,021,0002,281,472
12Jan 18, 2026 05:2311,56825,959,4439,162,0001,018,0002,269,184