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 22, 2025 14:20wainCGPwainCGPScore: 59,945Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 14:2059,75177,637,69948,537,0004,044,0002,519,040
2Feb 22, 2025 14:2059,76379,057,79048,546,0004,045,0002,396,160
3Feb 22, 2025 14:2059,80679,662,97748,581,0004,048,0002,400,256
4Feb 22, 2025 14:2059,83679,930,08249,619,0003,037,0002,502,656
5Feb 22, 2025 14:2059,94580,832,84948,695,0004,057,0002,310,144
6Feb 22, 2025 14:2060,10380,026,58148,900,0003,991,0002,502,656
7Feb 22, 2025 14:2060,13883,313,25147,929,0004,992,0002,351,104
8Feb 22, 2025 14:2060,46874,802,54348,192,0005,020,0002,478,080
9Feb 22, 2025 14:2062,46388,532,65950,970,0003,997,0002,506,752