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 18, 2024 14:40Ivan BessonovIvan BessonovScore: 20,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 14:4020,41742,189,81714,973,0002,994,0002,289,664
2May 18, 2024 14:4120,44541,072,90014,994,0002,998,0002,396,160
3May 18, 2024 14:4020,46442,347,31417,008,0001,000,0002,281,472
4May 18, 2024 14:4120,46845,995,99515,010,0003,002,0002,289,664
5May 18, 2024 14:4120,51033,734,75715,041,0003,008,0002,281,472
6May 18, 2024 14:4120,51841,457,77915,047,0003,009,0002,289,664
7May 18, 2024 14:4020,54039,864,81315,063,0003,012,0002,498,560
8May 18, 2024 14:4120,55741,377,87315,075,0003,015,0002,281,472
9May 18, 2024 14:4120,57235,905,46815,086,0003,017,0002,396,160
10May 18, 2024 14:4020,58941,246,01216,105,0002,013,0002,281,472
11May 18, 2024 14:4120,59240,974,73115,101,0003,020,0002,289,664
12May 18, 2024 14:4020,59941,549,35415,106,0003,021,0002,400,256
13May 18, 2024 14:4020,69346,128,84615,175,0003,035,0002,289,664
14May 18, 2024 14:4121,09034,630,35217,528,0001,031,0002,281,472
15May 18, 2024 14:4121,19947,387,41216,583,0002,072,0002,400,256
16May 18, 2024 14:4021,23238,405,27116,608,0002,076,0002,281,472
17May 18, 2024 14:4021,39043,337,17415,851,0002,972,0002,400,256
18May 18, 2024 14:4021,47344,616,75417,902,000994,0002,392,064
19May 18, 2024 14:4122,57687,545,66119,867,15902,379,776
20May 18, 2024 14:4122,70270,504,25519,977,89502,236,416
21May 18, 2024 14:4022,723102,957,02719,996,40302,240,512
22May 18, 2024 14:4022,74878,087,09120,017,87902,248,704
23May 18, 2024 14:4022,76485,026,34920,032,11702,244,608
24May 18, 2024 14:4122,87073,064,05920,125,29502,248,704