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 listFeb 14, 2026 23:20olliecrowolliecrowScore: 18,361Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 23:2018,22336,649,09114,032,0002,004,0002,469,888
2Feb 14, 2026 23:2018,32737,850,53314,112,0002,016,0002,453,504
3Feb 14, 2026 23:2018,33137,637,42215,123,0001,008,0002,469,888
4Feb 14, 2026 23:2018,33438,869,07315,126,0001,008,0002,482,176
5Feb 14, 2026 23:2018,36135,846,45915,149,0001,009,0002,473,984
6Feb 14, 2026 23:2018,36430,966,23915,150,0001,010,0002,420,736
7Feb 14, 2026 23:2018,40744,486,97914,174,0002,024,0002,478,080
8Feb 14, 2026 23:2018,41437,734,89915,192,0001,012,0002,482,176
9Feb 14, 2026 23:2018,47534,502,58815,242,0001,016,0002,531,328