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 02:58zielajzielajError
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:0000000Error: expected "51062136342893 ", got "51062136342784 "stderr
2Dec 15, 2024 02:5800000Error: expected "50911352319140 ", got "50912373600441 "stderr
3Dec 15, 2024 19:015,75623,009,8614,052,0001,013,0002,531,328
4Dec 15, 2024 19:015,75920,730,0023,041,0002,027,0002,531,328
5Dec 15, 2024 02:585,75921,975,4615,068,00002,269,184
6Dec 15, 2024 02:585,76318,635,7234,057,0001,014,0002,510,848
7Dec 15, 2024 02:585,77520,526,9204,066,0001,016,0002,531,328
8Dec 15, 2024 19:015,77619,304,7484,067,0001,016,0002,531,328
9Dec 15, 2024 19:015,78223,028,3683,053,0002,035,0002,531,328
10Dec 15, 2024 02:585,78430,864,0564,072,0001,018,0002,510,848
11Dec 15, 2024 19:015,79024,147,7704,076,0001,019,0002,531,328
12Dec 15, 2024 19:015,79220,277,6124,078,0001,019,0002,351,104
13Dec 15, 2024 02:585,79518,011,0834,080,0001,020,0002,351,104
14Dec 15, 2024 02:585,80822,902,9164,089,0001,022,0002,531,328
15Dec 15, 2024 19:015,81322,243,3714,092,0001,023,0002,510,848
16Dec 15, 2024 02:585,83123,737,9794,105,0001,026,0002,510,848
17Dec 15, 2024 02:585,85622,582,3844,123,0001,030,0002,531,328
18Dec 15, 2024 19:015,86921,979,7024,132,0001,033,0002,510,848
19Dec 15, 2024 19:015,90527,686,9464,157,0001,039,0002,506,752
20Dec 15, 2024 02:585,96430,959,0913,149,0002,099,0002,510,848