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 18, 2024 20:30Ivan BessonovIvan BessonovScore: 18,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:3017,25030,860,27213,156,0002,024,0002,314,240
2May 18, 2024 20:3017,25642,139,29114,173,0001,012,0002,441,216
3May 18, 2024 20:3017,26033,615,14713,164,0002,025,0002,289,664
4May 18, 2024 20:3017,27636,463,54914,190,0001,013,0002,289,664
5May 18, 2024 20:3017,33130,899,86613,218,0002,033,0002,314,240
6May 18, 2024 20:3017,47483,620,31215,377,35102,301,952
7May 18, 2024 20:3018,12980,984,06815,953,89102,183,168
8May 18, 2024 20:3018,15141,695,00713,977,0001,996,0002,289,664
9May 18, 2024 20:3018,26737,390,53015,071,0001,004,0002,318,336
10May 18, 2024 20:3018,29140,243,14515,090,0001,006,0002,289,664
11May 18, 2024 20:3018,29142,888,58514,084,0002,012,0002,289,664
12May 18, 2024 20:3018,33081,941,75116,130,76302,179,072