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 24, 2025 14:04wainCGPwainCGPScore: 43,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2025 14:0443,82460,395,27234,506,0004,059,0002,478,080
2Feb 24, 2025 14:0443,91764,898,78733,562,0005,085,0002,490,368
3Feb 24, 2025 14:0443,92066,042,54336,616,0002,034,0002,510,848
4Feb 24, 2025 14:0443,93469,050,41234,593,0004,069,0002,334,720
5Feb 24, 2025 14:0443,99265,350,76034,638,0004,075,0002,490,368
6Feb 24, 2025 14:0444,03667,937,60734,673,0004,079,0002,334,720
7Feb 24, 2025 14:0444,14169,230,24634,860,0003,984,0002,502,656
8Feb 24, 2025 14:0444,81363,812,75934,380,0005,055,0002,396,160
9Feb 24, 2025 14:0445,32366,026,01035,896,0003,988,0002,293,760