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 16, 2024 20:10Ivan BessonovIvan BessonovScore: 26,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:1026,58245,662,40922,375,0001,017,0002,281,472
2May 16, 2024 20:1026,59847,271,43822,389,0001,017,0002,269,184
3May 16, 2024 20:1026,60755,140,99323,414,00002,289,664
4May 16, 2024 20:1026,67655,825,23222,455,0001,020,0002,277,376
5May 16, 2024 20:1026,69450,617,07422,470,0001,021,0002,527,232
6May 16, 2024 20:1026,70150,055,60522,476,0001,021,0002,289,664
7May 16, 2024 20:1026,71948,434,61123,513,00002,273,280
8May 16, 2024 20:1026,81445,345,01122,571,0001,025,0002,527,232
9May 16, 2024 20:1026,81443,259,52622,571,0001,025,0002,269,184
10May 16, 2024 20:1028,36093,232,65924,956,56802,269,184
11May 16, 2024 20:1028,53284,539,87525,108,31102,256,896
12May 16, 2024 20:1028,69294,762,56325,248,57202,252,800