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 11:34KeefeKeefeScore: 160,159Success
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 11:34159,384163,216,598139,257,0001,001,0002,514,944
2Feb 22, 2025 11:34159,711160,330,524140,546,00002,277,376
3Feb 22, 2025 11:34160,060168,210,548138,856,0001,997,0002,400,256
4Feb 22, 2025 11:34160,158172,723,167139,940,000999,0002,277,376
5Feb 22, 2025 11:34160,159171,874,478138,941,0001,999,0002,277,376
6Feb 22, 2025 11:34160,275167,475,947140,042,0001,000,0002,277,376
7Feb 22, 2025 11:34160,513165,554,693140,250,0001,001,0002,277,376
8Feb 22, 2025 11:34160,641164,450,401140,362,0001,002,0002,277,376
9Feb 22, 2025 11:34161,168174,812,895140,830,000998,0002,408,448