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 listDec 29, 2024 18:07zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 18:1100000Error: expected "51326344332766 ", got "51326344332735 "stderr
2Dec 29, 2024 18:113,48919,010,2631,023,0002,047,0002,281,472
3Dec 29, 2024 18:073,57725,797,8322,099,0001,049,0002,461,696
4Dec 29, 2024 18:113,60525,105,0561,057,0002,115,0002,461,696
5Dec 29, 2024 18:113,60819,640,2231,058,0002,117,0002,465,792
6Dec 29, 2024 18:113,62717,322,5211,064,0002,128,0002,469,888
7Dec 29, 2024 18:073,68221,311,0641,080,0002,160,0002,461,696
8Dec 29, 2024 18:113,68219,015,0921,080,0002,160,0002,461,696
9Dec 29, 2024 18:113,80523,595,5602,232,0001,116,0002,465,792
10Dec 29, 2024 18:113,80620,184,7112,233,0001,116,0002,461,696
11Dec 29, 2024 18:113,82220,916,5302,242,0001,121,0002,469,888
12Dec 29, 2024 18:113,82621,374,4292,245,0001,122,0002,465,792
13Dec 29, 2024 18:073,83221,179,8322,248,0001,124,0002,469,888