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 13:56Alex KentAlex KentScore: 267,248Success
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 13:56266,140258,305,685232,202,0002,001,0002,281,472
2Jan 9, 2025 13:56266,814260,861,721232,798,0001,998,0002,289,664
3Jan 9, 2025 13:56267,100266,949,321233,048,0002,000,0002,289,664
4Jan 9, 2025 13:56267,139259,832,285233,082,0002,000,0002,289,664
5Jan 9, 2025 13:56267,248259,591,957233,177,0002,001,0002,371,584
6Jan 9, 2025 13:56267,520258,454,358234,417,0001,001,0002,265,088
7Jan 9, 2025 13:56267,638261,844,103234,519,0001,002,0002,289,664
8Jan 9, 2025 13:56267,650266,056,749234,530,0001,002,0002,289,664
9Jan 9, 2025 13:56267,750262,267,786234,618,0001,002,0002,289,664