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 12, 2026 17:34vahookvahookScore: 5,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 17:345,15124,794,0773,400,0001,133,0002,277,376
2Jan 12, 2026 17:345,15724,279,3693,404,0001,134,0002,502,656
3Jan 12, 2026 17:345,16119,185,0513,407,0001,135,0002,535,424