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 19, 2024 07:38Ivan BessonovIvan BessonovScore: 16,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:3816,44129,979,78114,468,00002,334,720
2May 19, 2024 07:3816,44736,269,00114,473,00002,289,664
3May 19, 2024 07:3816,45934,876,55413,450,0001,034,0002,289,664
4May 19, 2024 07:3816,52531,181,79314,542,00002,334,720
5May 19, 2024 07:3816,57231,972,78413,542,0001,041,0002,285,568
6May 19, 2024 07:3816,69598,885,57714,691,56002,191,360
7May 19, 2024 07:3816,76483,425,24114,751,89502,191,360
8May 19, 2024 07:3816,84373,167,68614,821,49602,179,072
9May 19, 2024 07:3817,11632,575,45914,058,0001,004,0002,289,664
10May 19, 2024 07:3817,11931,107,50113,057,0002,008,0002,289,664
11May 19, 2024 07:3817,13639,062,15013,070,0002,010,0002,289,664
12May 19, 2024 07:3817,17330,632,64913,097,0002,015,0002,289,664