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 18, 2025 06:57matsuoka-601matsuoka-601Score: 11,494Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 06:5711,31322,055,3766,969,0002,986,0002,469,888
2Jan 18, 2025 06:5711,34223,329,7367,985,0001,996,0002,469,888
3Jan 18, 2025 06:5711,38930,459,9658,018,0002,004,0002,478,080
4Jan 18, 2025 06:5711,44030,651,6157,047,0003,020,0002,465,792
5Jan 18, 2025 06:5711,49426,428,7556,069,0004,046,0002,465,792
6Jan 18, 2025 06:5711,55926,696,7916,103,0004,069,0002,478,080
7Jan 18, 2025 06:5711,57527,246,0379,168,0001,018,0002,461,696
8Jan 18, 2025 06:5711,59731,199,4229,185,0001,020,0002,482,176
9Jan 18, 2025 06:5711,61425,523,3146,132,0004,088,0002,347,008