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 11, 2025 15:17Alex KentAlex KentScore: 67,024Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2025 15:1766,58384,592,68958,593,00002,289,664
2Jan 11, 2025 15:1766,59886,497,09557,596,0001,010,0002,289,664
3Jan 11, 2025 15:1766,62082,970,70257,616,0001,010,0002,265,088
4Jan 11, 2025 15:1766,69082,831,19357,676,0001,011,0002,289,664
5Jan 11, 2025 15:1767,02491,833,81756,982,0001,999,0002,277,376
6Jan 11, 2025 15:1767,11384,840,05157,057,0002,002,0002,281,472
7Jan 11, 2025 15:1767,15682,013,64057,094,0002,003,0002,281,472
8Jan 11, 2025 15:1771,26994,597,22261,706,0001,011,0002,289,664
9Jan 11, 2025 15:1774,25892,989,11463,337,0002,010,0002,289,664