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 listMay 5, 2024 10:52Ivan BessonovIvan BessonovScore: 44,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 10:5244,68360,763,22038,313,0001,008,0002,289,664
2May 5, 2024 10:5244,69067,131,34538,319,0001,008,0002,289,664
3May 5, 2024 10:5244,76465,054,47338,382,0001,010,0002,289,664
4May 5, 2024 10:5244,77767,930,36138,394,0001,010,0002,289,664
5May 5, 2024 10:5244,82864,854,12339,449,00002,269,184
6May 5, 2024 10:5244,85161,483,93638,457,0001,012,0002,265,088
7May 5, 2024 10:5244,87665,365,57538,479,0001,012,0002,289,664
8May 5, 2024 10:5244,99360,919,32038,579,0001,015,0002,289,664
9May 5, 2024 10:5245,06168,021,58038,638,0001,016,0002,269,184
10May 5, 2024 10:5245,25098,908,56839,819,69202,260,992
11May 5, 2024 10:5245,51193,766,95340,049,95802,256,896
12May 5, 2024 10:5245,586100,175,11740,115,90502,256,896