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 30, 2026 22:16vahookvahookScore: 4,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2026 22:164,50025,811,3351,980,0001,980,0002,486,272
2Jan 30, 2026 22:164,52025,391,5151,989,0001,989,0002,490,368
3Jan 30, 2026 22:164,52321,695,0671,990,0001,990,0002,482,176
4Jan 30, 2026 22:164,52720,349,7861,992,0001,992,0002,486,272
5Jan 30, 2026 22:164,52719,110,8011,992,0001,992,0002,523,136
6Jan 30, 2026 22:164,53420,026,7791,995,0001,995,0002,482,176
7Jan 30, 2026 22:164,55720,357,5392,005,0002,005,0002,277,376
8Jan 30, 2026 22:164,56121,105,4672,007,0002,007,0002,486,272
9Jan 30, 2026 22:164,57724,505,2412,014,0002,014,0002,527,232