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 08:02Huy Duc LeHuy Duc LeScore: 44,390Success
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 08:0244,20764,397,14237,879,0001,023,0002,285,568
2Feb 20, 2024 08:0244,24561,261,20737,912,0001,024,0002,486,272
3Feb 20, 2024 08:0244,28062,967,49936,968,0001,998,0002,285,568
4Feb 20, 2024 08:0244,28262,210,01336,970,0001,998,0002,490,368
5Feb 20, 2024 08:0244,31061,689,87436,994,0001,999,0002,486,272
6Feb 20, 2024 08:0244,32263,094,25738,003,0001,000,0002,486,272
7Feb 20, 2024 08:0244,39062,340,04037,060,0002,003,0002,494,464
8Feb 20, 2024 08:0244,39467,080,21137,064,0002,003,0002,490,368
9Feb 20, 2024 08:0244,51666,933,79937,166,0002,008,0002,285,568
10Feb 20, 2024 08:0247,986100,720,32242,227,31002,211,840
11Feb 20, 2024 08:0247,993119,131,40042,233,80202,252,800
12Feb 20, 2024 08:0253,467124,971,88347,050,61902,211,840