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 19, 2026 22:08Johan SannemoJohan SannemoScore: 31,057Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 22:0830,80854,240,42025,103,0002,008,0002,281,472
2Jan 19, 2026 22:0830,91456,104,23725,189,0002,015,0002,523,136
3Jan 19, 2026 22:0830,98950,204,84325,250,0002,020,0002,281,472
4Jan 19, 2026 22:0830,99254,201,51526,263,0001,010,0002,281,472
5Jan 19, 2026 22:0831,05755,155,46626,318,0001,012,0002,265,088
6Jan 19, 2026 22:0831,08154,968,25326,338,0001,013,0002,265,088
7Jan 19, 2026 22:0831,12052,567,95525,358,0002,028,0002,281,472
8Jan 19, 2026 22:0831,12755,671,43026,378,0001,014,0002,273,280
9Jan 19, 2026 22:0831,19252,057,02225,416,0002,033,0002,281,472