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 listMay 14, 2024 15:20Ivan BessonovIvan BessonovScore: 36,714Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:2031,709111,681,28927,903,61602,265,088
2May 14, 2024 15:2031,78489,616,25727,970,27502,256,896
3May 14, 2024 15:2031,89997,793,67728,070,98102,256,896
4May 14, 2024 15:2036,49452,999,44530,108,0002,007,0002,265,088
5May 14, 2024 15:2036,54856,911,94030,152,0002,010,0002,289,664
6May 14, 2024 15:2036,61858,530,95130,210,0002,014,0002,289,664
7May 14, 2024 15:2036,71455,755,60331,299,0001,009,0002,289,664
8May 14, 2024 15:2036,74959,571,66631,329,0001,010,0002,277,376
9May 14, 2024 15:2036,75255,859,26231,332,0001,010,0002,359,296
10May 14, 2024 15:2036,80052,687,71131,372,0001,012,0002,269,184
11May 14, 2024 15:2036,83155,222,07431,399,0001,012,0002,289,664
12May 14, 2024 15:2036,86865,261,48131,431,0001,013,0002,289,664