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 24, 2025 08:128QTK8QTKScore: 33,973Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 16:2033,77460,810,13927,672,0002,049,0002,289,664
2Jan 23, 2025 16:2033,80256,783,73226,669,0003,077,0002,306,048
3Jan 23, 2025 16:2033,80355,674,28727,696,0002,051,0002,461,696
4Jan 24, 2025 08:1333,81559,766,94926,679,0003,078,0002,469,888
5Jan 23, 2025 16:2033,91356,445,79626,859,0002,984,0002,457,600
6Jan 23, 2025 16:2033,92356,529,16925,872,0003,980,0002,465,792
7Jan 23, 2025 16:2033,93056,446,22025,877,0003,981,0002,453,504
8Jan 23, 2025 16:2233,95257,593,86725,895,0003,983,0002,461,696
9Jan 23, 2025 16:2033,96661,412,29525,905,0003,985,0002,289,664
10Jan 24, 2025 08:1333,97359,324,43127,903,0001,993,0002,469,888
11Jan 24, 2025 08:1334,00161,010,00825,932,0003,989,0002,457,600
12Jan 23, 2025 16:2034,04559,064,51925,966,0003,994,0002,461,696
13Jan 23, 2025 16:2034,05255,157,04125,971,0003,995,0002,363,392
14Jan 23, 2025 16:2234,08856,864,43725,998,0003,999,0002,289,664
15Jan 23, 2025 16:2234,10855,110,82326,013,0004,002,0002,289,664
16Jan 24, 2025 08:12110,533123,750,51993,258,0004,011,0002,428,928
17Jan 24, 2025 08:12110,620120,711,87393,332,0004,014,0002,289,664
18Jan 24, 2025 08:12111,142121,799,17293,813,0003,992,0002,449,408