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 17, 2024 08:11Ivan BessonovIvan BessonovScore: 23,260Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:0623,01942,510,61719,245,0001,012,0002,273,280
2May 17, 2024 08:0623,08242,281,34018,281,0002,031,0002,375,680
3May 17, 2024 08:0623,10543,858,31818,299,0002,033,0002,273,280
4May 17, 2024 08:1123,10943,849,70919,320,0001,016,0002,277,376
5May 17, 2024 08:1123,11543,187,91318,307,0002,034,0002,277,376
6May 17, 2024 08:0623,14843,015,71519,352,0001,018,0002,396,160
7May 17, 2024 08:1123,16844,603,54419,369,0001,019,0002,289,664
8May 17, 2024 08:0623,17443,075,48119,374,0001,019,0002,273,280
9May 17, 2024 08:0623,19243,297,76319,389,0001,020,0002,289,664
10May 17, 2024 08:0623,20547,140,36319,399,0001,021,0002,289,664
11May 17, 2024 08:1123,21741,698,16119,410,0001,021,0002,277,376
12May 17, 2024 08:1123,21741,283,55519,410,0001,021,0002,289,664
13May 17, 2024 08:0623,26047,208,84019,446,0001,023,0002,289,664
14May 17, 2024 08:1123,26345,147,19220,471,00002,289,664
15May 17, 2024 08:1123,26345,767,82319,448,0001,023,0002,289,664
16May 17, 2024 08:1123,31446,726,80119,491,0001,025,0002,277,376
17May 17, 2024 08:1123,32741,154,87519,502,0001,026,0002,289,664
18May 17, 2024 08:0623,45949,328,35719,612,0001,032,0002,273,280
19May 17, 2024 08:1123,94789,121,53521,073,39302,252,800
20May 17, 2024 08:0623,95180,187,22921,077,22302,256,896
21May 17, 2024 08:0623,97692,719,54021,098,80202,265,088
22May 17, 2024 08:1124,002106,674,74321,121,51602,269,184
23May 17, 2024 08:0624,00395,606,79821,122,26302,256,896
24May 17, 2024 08:1124,09793,396,04121,205,29102,256,896