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 30, 2024 18:06zielajzielajScore: 3,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 18:063,46420,626,0281,016,0002,032,0002,281,472
2Dec 30, 2024 16:503,57024,722,4091,047,0002,095,0002,535,424
3Dec 30, 2024 20:573,58317,788,0021,051,0002,102,0002,461,696
4Dec 30, 2024 20:573,59024,008,9041,053,0002,106,0002,453,504
5Dec 30, 2024 16:503,59824,618,4321,055,0002,111,0002,457,600
6Dec 30, 2024 16:503,60020,650,1731,056,0002,112,0002,461,696
7Dec 30, 2024 16:503,61020,088,0761,059,0002,118,0002,465,792
8Dec 30, 2024 16:503,61419,334,6881,060,0002,120,0002,469,888
9Dec 30, 2024 18:063,62722,127,9781,064,0002,128,0002,461,696
10Dec 30, 2024 20:573,65622,003,1061,072,0002,145,0002,465,792
11Dec 30, 2024 16:503,67317,624,0521,077,0002,155,0002,465,792
12Dec 30, 2024 16:503,70320,124,7631,086,0002,173,0002,297,856
13Dec 30, 2024 18:063,73019,987,9991,094,0002,188,0002,465,792
14Dec 30, 2024 16:503,77719,597,2853,324,00002,457,600
15Dec 30, 2024 16:503,80220,548,9162,231,0001,115,0002,535,424