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 17, 2026 18:02zielajzielajScore: 3,925Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 18:003,45717,171,8042,028,0001,014,0002,404,352
2Jan 17, 2026 18:023,46016,317,3362,030,0001,015,0002,342,912
3Jan 17, 2026 18:003,46419,045,2231,016,0002,032,0002,486,272
4Jan 17, 2026 18:023,92520,568,0123,454,00002,482,176
5Jan 17, 2026 18:004,16616,968,7732,444,0001,222,0002,531,328
6Jan 17, 2026 18:024,32322,740,0853,804,00002,490,368