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 28, 2025 15:02wainCGPwainCGPScore: 30,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2025 15:0229,89249,532,58825,294,0001,011,0002,289,664
2Feb 28, 2025 15:0229,99154,416,48624,362,0002,030,0002,273,280
3Feb 28, 2025 15:0229,99253,316,68825,378,0001,015,0002,289,664
4Feb 28, 2025 15:0230,01553,016,80626,413,00002,273,280
5Feb 28, 2025 15:0230,10353,467,46526,491,00002,273,280
6Feb 28, 2025 15:0230,11448,101,88325,481,0001,019,0002,273,280
7Feb 28, 2025 15:0230,13159,108,23925,496,0001,019,0002,273,280
8Feb 28, 2025 15:0230,14152,305,80925,504,0001,020,0002,289,664
9Feb 28, 2025 15:0230,15049,296,71925,512,0001,020,0002,273,280