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 01:37zielajzielajError
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 01:3700000Error: expected "51297683007643 ", got "51297683007624 "stderr
2Dec 15, 2024 01:376,13421,596,3095,398,00002,506,752
3Dec 15, 2024 01:376,16722,544,2815,427,00002,523,136
4Dec 15, 2024 01:376,16821,624,0595,428,00002,531,328
5Dec 15, 2024 01:376,18423,415,0585,442,00002,510,848
6Dec 15, 2024 01:376,21522,694,4215,469,00002,510,848
7Dec 15, 2024 01:376,22221,491,6955,475,00002,519,040
8Dec 15, 2024 01:376,23221,328,2655,484,00002,506,752
9Dec 15, 2024 01:376,24222,533,1534,395,0001,098,0002,510,848
10Dec 15, 2024 01:376,31920,798,2024,449,0001,112,0002,531,328