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 13:32wainCGPwainCGPScore: 69,134Success
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 13:3268,61482,838,79256,355,0004,025,0002,392,064
2Feb 22, 2025 13:3268,67381,298,79055,396,0005,036,0002,334,720
3Feb 22, 2025 13:3268,71186,020,25058,451,0002,015,0002,351,104
4Feb 22, 2025 13:3268,90688,944,30855,584,0005,053,0002,490,368
5Feb 22, 2025 13:3269,13485,290,78554,854,0005,984,0002,506,752
6Feb 22, 2025 13:3269,17393,539,39056,881,0003,991,0002,289,664
7Feb 22, 2025 13:3269,18187,582,76155,889,0004,990,0002,490,368
8Feb 22, 2025 13:3269,24589,198,06056,941,0003,995,0002,482,176
9Feb 22, 2025 13:3269,41184,794,96656,076,0005,006,0002,293,760