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 15:48wainCGPwainCGPScore: 58,513Success
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 15:4858,28978,623,46446,266,0005,028,0002,502,656
2Feb 22, 2025 15:4858,39273,533,08847,355,0004,030,0002,494,464
3Feb 22, 2025 15:4858,43582,399,95147,390,0004,033,0002,396,160
4Feb 22, 2025 15:4858,45078,016,13847,402,0004,034,0002,297,856
5Feb 22, 2025 15:4858,51373,264,16546,443,0005,048,0002,486,272
6Feb 22, 2025 15:4858,57372,274,79447,502,0004,042,0002,478,080
7Feb 22, 2025 15:4858,61173,642,00145,510,0006,068,0002,306,048
8Feb 22, 2025 15:4858,65371,825,47748,579,0003,036,0002,306,048
9Feb 22, 2025 15:4858,99574,591,65847,923,0003,993,0002,494,464