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,056Success
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:0410,91728,140,7748,540,0001,067,0002,478,080
2Jan 18, 2025 07:0210,94921,665,1818,565,0001,070,0002,478,080
3Jan 18, 2025 07:0410,97622,775,8567,513,0002,146,0002,465,792
4Jan 18, 2025 07:0410,98027,273,7167,515,0002,147,0002,387,968
5Jan 18, 2025 07:0411,01725,727,2537,541,0002,154,0002,482,176
6Jan 18, 2025 07:0411,04830,686,7868,642,0001,080,0002,473,984
7Jan 18, 2025 07:0411,05626,099,4307,567,0002,162,0002,478,080
8Jan 18, 2025 07:0411,10325,975,9918,686,0001,085,0002,469,888
9Jan 18, 2025 07:0211,11625,152,3699,782,00002,461,696
10Jan 18, 2025 07:0411,22426,453,4058,890,000987,0002,486,272
11Jan 18, 2025 07:0411,25724,776,9657,925,0001,981,0002,478,080
12Jan 18, 2025 07:0211,27532,435,0527,938,0001,984,0002,473,984