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 15, 2024 19:09zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 19:0900000Error: expected "50545089470586 ", got "50545578127567 "stderr
2Dec 15, 2024 19:345,68222,951,3143,000,0002,000,0002,531,328
3Dec 15, 2024 19:095,71025,715,0704,020,0001,005,0002,531,328
4Dec 15, 2024 19:095,71619,971,6444,024,0001,006,0002,519,040
5Dec 15, 2024 19:095,72523,224,8604,031,0001,007,0002,531,328
6Dec 15, 2024 19:345,73522,770,0464,038,0001,009,0002,502,656
7Dec 15, 2024 19:095,73920,400,4904,040,0001,010,0002,506,752
8Dec 15, 2024 19:095,74519,589,5613,034,0002,022,0002,502,656
9Dec 15, 2024 19:345,74526,282,8474,045,0001,011,0002,506,752
10Dec 15, 2024 19:095,75918,429,8974,055,0001,013,0002,506,752
11Dec 15, 2024 19:095,76521,034,8304,059,0001,014,0002,506,752
12Dec 15, 2024 19:095,76520,968,3214,059,0001,014,0002,510,848
13Dec 15, 2024 19:095,77021,277,5523,047,0002,031,0002,510,848