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 18, 2025 07:02matsuoka-601matsuoka-601Score: 11,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 07:0211,25624,290,7835,943,0003,962,0002,461,696
2Jan 18, 2025 06:5911,25823,514,7846,935,0002,972,0002,465,792
3Jan 18, 2025 06:5911,25925,546,2026,936,0002,972,0002,478,080
4Jan 18, 2025 07:0211,25927,338,2926,936,0002,972,0002,461,696
5Jan 18, 2025 07:0211,26325,306,2657,929,0001,982,0002,478,080
6Jan 18, 2025 06:5911,26529,368,0176,939,0002,974,0002,465,792
7Jan 18, 2025 06:5911,26525,764,5097,931,0001,982,0002,342,912
8Jan 18, 2025 06:5911,27427,866,8497,937,0001,984,0002,482,176
9Jan 18, 2025 06:5911,28030,512,0847,941,0001,985,0002,465,792
10Jan 18, 2025 06:5911,28124,187,7277,942,0001,985,0002,478,080
11Jan 18, 2025 06:5911,28425,596,2716,951,0002,979,0002,469,888
12Jan 18, 2025 06:5911,28431,841,2877,944,0001,986,0002,482,176
13Jan 18, 2025 07:0211,29228,551,1936,956,0002,981,0002,473,984
14Jan 18, 2025 07:0211,29826,639,9598,948,000994,0002,469,888
15Jan 18, 2025 07:0211,30626,684,2248,844,0001,105,0002,465,792
16Jan 18, 2025 07:0211,30828,402,0187,961,0001,990,0002,461,696
17Jan 18, 2025 07:0211,32725,038,6465,981,0003,987,0002,469,888
18Jan 18, 2025 07:0211,33131,114,8477,977,0001,994,0002,465,792