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 20, 2024 19:34Ivan BessonovIvan BessonovScore: 16,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:3415,62441,262,71512,692,0001,057,0002,289,664
2May 20, 2024 19:3415,63234,388,32813,756,00002,289,664
3May 20, 2024 19:3415,78230,875,93312,896,000992,0002,289,664
4May 20, 2024 19:3415,80829,122,04511,924,0001,987,0002,334,720
5May 20, 2024 19:3415,95391,340,03314,038,59002,191,360
6May 20, 2024 19:3416,27332,235,13812,275,0002,045,0002,289,664
7May 20, 2024 19:3416,38634,570,33012,360,0002,060,0002,289,664
8May 20, 2024 19:3416,43035,538,69813,426,0001,032,0002,289,664
9May 20, 2024 19:3416,44837,015,39812,407,0002,067,0002,338,816
10May 20, 2024 19:3416,46042,510,22912,554,0001,931,0002,342,912
11May 20, 2024 19:3416,51689,674,75414,533,77202,334,720
12May 20, 2024 19:3416,90785,790,56714,878,37402,334,720