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 17, 2024 21:39zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 21:3900000Error: expected "51260565830245 ", got "51260565214832 "stderr
2Dec 17, 2024 21:394,72024,904,2942,077,0002,077,0002,269,184
3Dec 17, 2024 21:394,72324,809,2053,117,0001,039,0002,506,752
4Dec 17, 2024 21:394,72719,482,5043,120,0001,040,0002,502,656
5Dec 17, 2024 21:394,77018,662,0072,099,0002,099,0002,510,848
6Dec 17, 2024 21:394,77322,262,1503,150,0001,050,0002,506,752
7Dec 17, 2024 21:394,85024,060,1262,134,0002,134,0002,269,184
8Dec 17, 2024 21:394,99218,608,5093,295,0001,098,0002,502,656
9Dec 17, 2024 21:395,88217,578,7294,141,0001,035,0002,506,752
10Dec 17, 2024 21:396,09223,012,5605,361,00002,506,752