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 9, 2025 15:09Alex KentAlex KentScore: 134,155Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 15:09133,560149,670,827116,529,0001,004,0002,269,184
2Jan 9, 2025 15:09133,903142,236,852116,837,000998,0002,289,664
3Jan 9, 2025 15:09133,943147,033,121115,873,0001,997,0002,289,664
4Jan 9, 2025 15:09134,124141,611,721117,029,0001,000,0002,289,664
5Jan 9, 2025 15:09134,155147,510,832116,056,0002,000,0002,277,376
6Jan 9, 2025 15:09134,180140,332,777116,077,0002,001,0002,277,376
7Jan 9, 2025 15:09134,218139,936,790116,111,0002,001,0002,281,472
8Jan 9, 2025 15:09134,225138,668,082116,116,0002,002,0002,289,664
9Jan 9, 2025 15:09134,570146,390,103117,419,0001,003,0002,289,664