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 listApr 22, 2024 20:09Joad NacerJoad NacerScore: 70,896Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 20:0870,507141,864,50062,045,86202,260,992
2Apr 22, 2024 20:0870,862128,003,66962,358,52002,269,184
3Apr 22, 2024 20:1070,873126,144,86562,368,67402,256,896
4Apr 22, 2024 20:0970,886120,064,62062,379,99802,260,992
5Apr 22, 2024 20:1070,896122,926,34762,388,25802,256,896
6Apr 22, 2024 20:0971,011129,799,56162,489,79002,260,992
7Apr 22, 2024 20:1071,014117,417,56862,492,18602,256,896
8Apr 22, 2024 20:0871,169122,887,59862,628,95802,260,992
9Apr 22, 2024 20:0971,322130,210,32462,763,29602,256,896