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 8, 2025 15:45Alex KentAlex KentScore: 1,653,535Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 8, 2025 15:451,644,6881,470,398,0381,444,327,0002,998,0002,289,664
2Jan 8, 2025 15:451,651,0331,475,511,4281,451,910,000999,0002,265,088
3Jan 8, 2025 15:451,651,1391,474,439,3401,452,002,0001,000,0002,289,664
4Jan 8, 2025 15:451,652,8561,482,835,3001,452,516,0001,997,0002,523,136
5Jan 8, 2025 15:451,653,5351,486,056,2551,453,111,0002,000,0002,265,088
6Jan 8, 2025 15:451,654,2521,482,999,5631,453,743,0001,999,0002,277,376
7Jan 8, 2025 15:451,654,3741,482,650,5071,455,849,00002,523,136
8Jan 8, 2025 15:451,657,3581,486,063,3511,455,479,0002,996,0002,523,136
9Jan 8, 2025 15:451,663,3351,513,601,7111,461,737,0001,998,0002,277,376