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 24, 2026 21:23zielajzielajScore: 3,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 21:243,46020,874,2172,030,0001,015,0002,277,376
2Jan 24, 2026 21:233,46415,798,5382,032,0001,016,0002,359,296
3Jan 24, 2026 21:243,46819,195,3342,035,0001,017,0002,359,296
4Jan 24, 2026 21:233,47220,412,2312,037,0001,018,0002,359,296
5Jan 24, 2026 21:243,50921,258,5891,029,0002,059,0002,355,200
6Jan 24, 2026 21:233,60118,761,6442,113,0001,056,0002,359,296