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 17:15zielajzielajScore: 3,407Success
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 17:153,35815,095,8491,970,000985,0002,326,528
2Jan 10, 2025 17:153,35916,110,3121,971,000985,0002,326,528
3Jan 10, 2025 17:153,38222,691,4021,984,000992,0002,330,624
4Jan 10, 2025 17:153,38523,635,8501,986,000993,0002,326,528
5Jan 10, 2025 17:153,40719,605,0371,999,000999,0002,531,328
6Jan 10, 2025 17:153,40924,322,2922,000,0001,000,0002,334,720
7Jan 10, 2025 17:153,43323,793,3271,007,0002,014,0002,326,528
8Jan 10, 2025 17:153,44021,349,0652,018,0001,009,0002,326,528
9Jan 10, 2025 17:153,45323,096,8002,026,0001,013,0002,330,624