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 10, 2025 14:57Alex KentAlex KentScore: 132,008Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 14:57131,735141,365,134114,928,000999,0002,269,184
2Jan 10, 2025 14:57131,903140,315,004114,074,0002,001,0002,277,376
3Jan 10, 2025 14:57131,905142,358,518114,075,0002,001,0002,265,088
4Jan 10, 2025 14:57131,945140,655,853114,111,0002,001,0002,265,088
5Jan 10, 2025 14:57132,008142,239,733114,165,0002,002,0002,371,584
6Jan 10, 2025 14:57132,106144,136,036114,249,0002,004,0002,289,664
7Jan 10, 2025 14:57132,125137,299,906114,266,0002,004,0002,289,664
8Jan 10, 2025 14:57132,181142,964,310114,314,0002,005,0002,265,088
9Jan 10, 2025 14:57132,264144,160,245115,389,0001,003,0002,273,280