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 listJan 17, 2025 07:02Ian MckibbenIan MckibbenScore: 108,423Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2025 07:02107,857121,771,73292,916,0001,998,0002,289,664
2Jan 17, 2025 07:02108,227124,122,18293,235,0002,005,0002,281,472
3Jan 18, 2025 07:37108,267121,810,75693,270,0002,005,0002,289,664
4Jan 17, 2025 07:02108,310124,408,73394,310,0001,003,0002,289,664
5Jan 18, 2025 07:37108,368122,365,22094,361,0001,003,0002,289,664
6Jan 17, 2025 07:02108,390123,134,48994,379,0001,004,0002,289,664
7Jan 17, 2025 07:02108,423120,296,30495,412,00002,269,184
8Jan 17, 2025 07:02108,449130,191,39494,431,0001,004,0002,273,280
9Jan 17, 2025 07:02108,514122,158,69494,487,0001,005,0002,277,376
10Jan 17, 2025 07:02109,107122,024,32394,014,0002,000,0002,269,184
11Jan 17, 2025 07:02109,402126,622,79094,269,0002,005,0002,289,664
12Jan 18, 2025 07:37109,418122,401,77994,282,0002,006,0002,289,664