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 30, 2026 08:00olliecrowolliecrowScore: 11,421Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 08:0111,38930,946,9648,019,0002,004,0002,326,528
2Apr 30, 2026 08:0111,40128,665,1047,023,0003,010,0002,547,712
3Apr 30, 2026 08:0111,40425,344,5099,033,0001,003,0002,539,520
4Apr 30, 2026 08:0111,41823,271,9618,039,0002,009,0002,543,616
5Apr 30, 2026 08:0111,42127,006,6648,041,0002,010,0002,482,176
6Apr 30, 2026 08:0111,43225,622,3318,049,0002,012,0002,486,272
7Apr 30, 2026 08:0111,45429,243,7958,064,0002,016,0002,547,712
8Apr 30, 2026 08:0111,48426,938,2258,085,0002,021,0002,539,520
9Apr 30, 2026 08:0111,57529,405,2808,149,0002,037,0002,478,080