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 03:10Huy Duc LeHuy Duc LeScore: 32,298Success
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 03:1032,22854,550,40827,349,0001,012,0002,490,368
2Feb 20, 2024 03:1032,23552,239,00727,354,0001,013,0002,289,664
3Feb 20, 2024 03:1032,24950,535,96027,366,0001,013,0002,490,368
4Feb 20, 2024 03:1032,26953,559,79627,383,0001,014,0002,490,368
5Feb 20, 2024 03:1032,28054,506,78828,406,00002,289,664
6Feb 20, 2024 03:1032,29558,501,77827,405,0001,015,0002,289,664
7Feb 20, 2024 03:1032,29850,776,39827,407,0001,015,0002,289,664
8Feb 20, 2024 03:1032,32348,130,46127,429,0001,015,0002,285,568
9Feb 20, 2024 03:1032,51652,023,45727,593,0001,021,0002,281,472
10Feb 20, 2024 03:1032,58192,615,72028,671,10102,228,224
11Feb 20, 2024 03:1032,58298,588,41728,672,35702,220,032
12Feb 20, 2024 03:1032,58487,645,17128,674,23002,220,032