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 14:07Alex KentAlex KentScore: 252,261Success
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 14:07250,644243,672,709219,565,0001,002,0002,289,664
2Jan 9, 2025 14:07251,349243,878,382219,186,0002,001,0002,273,280
3Jan 9, 2025 14:07251,922247,222,618220,688,0001,003,0002,289,664
4Jan 9, 2025 14:07252,042248,168,362220,798,000999,0002,273,280
5Jan 9, 2025 14:07252,261245,030,306219,991,0001,999,0002,289,664
6Jan 9, 2025 14:07252,457251,163,829220,161,0002,001,0002,281,472
7Jan 9, 2025 14:07252,550249,067,353220,242,0002,002,0002,289,664
8Jan 9, 2025 14:07252,983248,685,232222,625,00002,371,584
9Jan 9, 2025 14:07253,170248,790,916220,792,0001,998,0002,371,584