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 listFeb 20, 2024 08:07Huy Duc LeHuy Duc LeScore: 32,926Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 08:0730,548116,977,53926,881,88802,211,840
2Feb 20, 2024 08:0730,70486,799,87027,019,55902,224,128
3Feb 20, 2024 08:0730,72895,080,73327,040,49602,220,032
4Feb 20, 2024 08:0732,89457,561,67527,949,000998,0002,486,272
5Feb 20, 2024 08:0732,90856,972,01826,962,0001,997,0002,289,664
6Feb 20, 2024 08:0732,91151,151,29827,964,000998,0002,486,272
7Feb 20, 2024 08:0732,92653,773,95026,977,0001,998,0002,482,176
8Feb 20, 2024 08:0732,96459,747,56927,008,0002,000,0002,289,664
9Feb 20, 2024 08:0732,99854,803,96827,036,0002,002,0002,289,664
10Feb 20, 2024 08:0733,01656,021,76127,051,0002,003,0002,289,664
11Feb 20, 2024 08:0733,04356,476,22228,076,0001,002,0002,490,368
12Feb 20, 2024 08:0733,08653,712,67928,112,0001,004,0002,289,664