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 15, 2026 23:08zielajzielajScore: 3,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 15, 2026 23:083,39016,308,9431,989,000994,0002,355,200
2Jan 15, 2026 23:073,42423,243,0922,009,0001,004,0002,355,200
3Jan 15, 2026 23:073,42618,044,9222,010,0001,005,0002,347,008
4Jan 15, 2026 23:083,46519,286,2432,033,0001,016,0002,359,296
5Jan 15, 2026 23:073,52622,622,3302,069,0001,034,0002,535,424
6Jan 15, 2026 23:083,54018,860,4021,038,0002,077,0002,359,296