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 19:30Ivan BessonovIvan BessonovScore: 30,807Success
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 19:3027,53795,240,37124,232,85302,248,704
2May 16, 2024 21:0027,63079,973,31024,314,01602,260,992
3May 16, 2024 19:3027,63285,340,96324,316,55702,252,800
4May 16, 2024 21:0027,66389,975,37424,343,23902,256,896
5May 16, 2024 19:3027,66899,836,76924,347,52802,265,088
6May 16, 2024 21:0027,72587,092,05924,398,09602,256,896
7May 16, 2024 19:3030,71650,124,47826,029,0001,001,0002,387,968
8May 16, 2024 19:3030,74349,870,78926,052,0001,002,0002,289,664
9May 16, 2024 21:0030,75748,945,13425,062,0002,004,0002,273,280
10May 16, 2024 21:0030,78947,691,40626,091,0001,003,0002,277,376
11May 16, 2024 19:3030,79152,442,49226,093,0001,003,0002,281,472
12May 16, 2024 19:3030,79550,981,00726,097,0001,003,0002,289,664
13May 16, 2024 21:0030,80749,586,84525,102,0002,008,0002,289,664
14May 16, 2024 21:0030,80848,103,87625,103,0002,008,0002,289,664
15May 16, 2024 21:0030,81151,657,07025,106,0002,008,0002,289,664
16May 16, 2024 21:0030,82748,733,90425,119,0002,009,0002,289,664
17May 16, 2024 19:3030,84254,208,88525,131,0002,010,0002,289,664
18May 16, 2024 21:0030,85653,511,19625,142,0002,011,0002,289,664
19May 16, 2024 19:3030,93654,484,88025,208,0002,016,0002,281,472
20May 16, 2024 21:0030,95054,769,08825,219,0002,017,0002,281,472
21May 16, 2024 19:3030,96448,887,30525,230,0002,018,0002,289,664
22May 16, 2024 19:3031,00650,090,36925,264,0002,021,0002,289,664
23May 16, 2024 19:3031,18856,283,66426,429,0001,016,0002,289,664
24May 16, 2024 21:0031,22558,939,53625,516,0001,962,0002,269,184