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 listJan 1, 2025 18:28zielajzielajScore: 3,598Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 18:313,48121,599,4991,021,0002,042,0002,461,696
2Jan 1, 2025 18:313,49423,758,4752,050,0001,025,0002,461,696
3Jan 1, 2025 18:313,51122,061,8071,030,0002,060,0002,281,472
4Jan 1, 2025 18:313,53024,365,9281,035,0002,071,0002,461,696
5Jan 1, 2025 18:313,54723,319,6992,081,0001,040,0002,461,696
6Jan 1, 2025 18:313,56320,862,7131,045,0002,090,0002,535,424
7Jan 1, 2025 18:283,59818,444,8451,055,0002,111,0002,461,696
8Jan 1, 2025 18:283,61720,155,1051,061,0002,122,0002,461,696
9Jan 1, 2025 18:283,67224,935,8631,077,0002,154,0002,465,792
10Jan 1, 2025 18:313,68621,506,7271,081,0002,163,0002,465,792
11Jan 1, 2025 18:313,69016,376,6591,082,0002,165,0002,465,792
12Jan 1, 2025 18:313,70617,643,8191,087,0002,174,0002,465,792