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 1, 2025 18:32zielajzielajScore: 3,574Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 18:323,48221,207,8501,021,0002,043,0002,465,792
2Jan 1, 2025 18:323,48418,783,9021,022,0002,044,0002,383,872
3Jan 1, 2025 18:323,49216,413,8151,024,0002,049,0002,297,856
4Jan 1, 2025 18:323,49517,933,8072,051,0001,025,0002,461,696
5Jan 1, 2025 18:323,57425,598,8491,048,0002,097,0002,457,600
6Jan 1, 2025 18:323,66823,868,1391,076,0002,152,0002,457,600
7Jan 1, 2025 18:323,68221,634,3071,080,0002,160,0002,535,424
8Jan 1, 2025 18:323,70320,054,3591,086,0002,173,0002,465,792
9Jan 1, 2025 18:323,78821,853,3371,111,0002,222,0002,457,600