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 08:06Ivan BessonovIvan BessonovScore: 16,514Success
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 08:0616,33431,541,42213,348,0001,026,0002,338,816
2May 19, 2024 08:0616,34132,393,98513,353,0001,027,0002,330,624
3May 19, 2024 08:0616,42436,577,42713,421,0001,032,0002,289,664
4May 19, 2024 08:0616,43031,073,18114,458,00002,449,408
5May 19, 2024 08:0616,45231,743,33113,444,0001,034,0002,289,664
6May 19, 2024 08:0616,50542,850,99113,487,0001,037,0002,289,664
7May 19, 2024 08:0616,51436,279,75513,494,0001,038,0002,285,568
8May 19, 2024 08:0617,11931,791,31713,057,0002,008,0002,289,664
9May 19, 2024 08:0617,14132,491,06314,079,0001,005,0002,289,664
10May 19, 2024 08:0617,30070,014,14615,224,00502,187,264
11May 19, 2024 08:0617,39691,169,68615,308,33602,191,360
12May 19, 2024 08:0617,64388,704,48915,525,98102,191,360