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 listJul 31, 2022 16:06Robert BurkeRobert BurkeScore: 36,241Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 16:0635,72697,405,01631,438,56402,273,280
2Jul 31, 2022 16:0635,74688,292,30731,456,75902,269,184
3Jul 31, 2022 16:0635,80258,295,09231,506,00002,273,280
4Jul 31, 2022 16:0635,94787,326,28431,633,30502,269,184
5Jul 31, 2022 16:0636,02356,041,19731,700,00002,273,280
6Jul 31, 2022 16:0636,06562,942,18931,737,00002,273,280
7Jul 31, 2022 16:0636,24160,305,91928,903,0002,989,0002,293,760
8Jul 31, 2022 16:0636,24256,829,58430,897,000996,0002,301,952
9Jul 31, 2022 16:0636,25556,601,01929,910,0001,994,0002,535,424
10Jul 31, 2022 16:0636,26052,086,29928,918,0002,991,0002,535,424
11Jul 31, 2022 16:0636,46055,403,36130,080,0002,005,0002,273,280
12Jul 31, 2022 16:0636,74156,726,39629,301,0003,031,0002,289,664