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 listDec 19, 2024 02:36zielajzielajScore: 4,905Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 19:594,58324,405,2233,025,0001,008,0002,506,752
2Dec 18, 2024 19:594,59226,361,2803,031,0001,010,0002,510,848
3Dec 18, 2024 19:594,59819,067,9413,035,0001,011,0002,277,376
4Dec 18, 2024 19:594,59827,468,9773,035,0001,011,0002,531,328
5Dec 18, 2024 19:594,63622,325,4843,060,0001,020,0002,531,328
6Dec 18, 2024 19:594,64821,156,9093,068,0001,022,0002,531,328
7Dec 18, 2024 19:594,65120,209,3243,070,0001,023,0002,506,752
8Dec 19, 2024 02:384,74317,205,6643,131,0001,043,0002,531,328
9Dec 18, 2024 19:594,74526,514,6853,132,0001,044,0002,539,520
10Dec 18, 2024 19:594,76620,614,1532,097,0002,097,0002,506,752
11Dec 18, 2024 20:344,90520,396,3273,237,0001,079,0002,269,184
12Dec 18, 2024 20:034,93020,901,5163,254,0001,084,0002,502,656
13Dec 19, 2024 02:385,03621,444,6572,216,0002,216,0002,510,848
14Dec 18, 2024 20:345,21422,210,7793,441,0001,147,0002,510,848
15Dec 19, 2024 02:385,22024,141,2244,594,00002,506,752
16Dec 18, 2024 20:035,26527,814,7123,475,0001,158,0002,510,848
17Dec 19, 2024 02:365,26921,181,5443,478,0001,159,0002,510,848
18Dec 19, 2024 02:365,30023,714,7853,498,0001,166,0002,510,848
19Dec 18, 2024 20:345,31021,113,8623,505,0001,168,0002,510,848
20Dec 19, 2024 02:365,34222,949,5723,526,0001,175,0002,502,656
21Dec 18, 2024 20:035,34222,784,3774,701,00002,510,848