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 12:27wainCGPwainCGPScore: 69,019Success
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 12:2768,66983,632,16756,401,0004,028,0002,506,752
2Feb 22, 2025 12:2768,86185,832,29456,559,0004,039,0002,494,464
3Feb 22, 2025 12:2768,87481,096,49055,559,0005,050,0002,478,080
4Feb 22, 2025 12:2768,96986,781,89556,647,0004,046,0002,490,368
5Feb 22, 2025 12:2769,01990,954,11256,688,0004,049,0002,482,176
6Feb 22, 2025 12:2769,20283,516,67456,905,0003,993,0002,310,144
7Feb 22, 2025 12:2769,21986,195,90655,921,0004,992,0002,453,504
8Feb 22, 2025 12:2769,50090,122,49056,147,0005,013,0002,453,504
9Feb 22, 2025 12:2769,81084,523,32156,398,0005,035,0002,478,080