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 listMar 16, 2025 15:34wainCGPwainCGPScore: 18,066Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2025 14:3817,85937,532,24814,669,0001,047,0002,281,472
2Mar 16, 2025 14:3817,87339,951,35214,680,0001,048,0002,289,664
3Mar 16, 2025 14:3817,89540,658,34614,699,0001,049,0002,273,280
4Mar 16, 2025 14:3817,90744,666,06214,708,0001,050,0002,277,376
5Mar 16, 2025 15:3418,05233,232,26014,894,000992,0002,289,664
6Mar 16, 2025 14:3818,06546,589,06813,910,0001,987,0002,289,664
7Mar 16, 2025 15:3418,06632,626,47913,911,0001,987,0002,285,568
8Mar 16, 2025 15:3418,06647,070,51214,905,000993,0002,289,664
9Mar 16, 2025 14:3818,06738,008,59213,912,0001,987,0002,289,664
10Mar 16, 2025 14:3818,07041,222,28214,909,000993,0002,289,664
11Mar 16, 2025 14:3818,07633,317,84213,919,0001,988,0002,289,664
12Mar 16, 2025 14:3818,08338,160,37713,924,0001,989,0002,265,088