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 14:44Ivan BessonovIvan BessonovScore: 20,326Success
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 14:4419,56938,952,82215,195,0002,026,0002,297,856
2May 18, 2024 14:4419,58536,624,53615,208,0002,027,0002,293,760
3May 18, 2024 14:4419,63139,728,56915,243,0002,032,0002,310,144
4May 18, 2024 14:4419,66737,275,87115,271,0002,036,0002,285,568
5May 18, 2024 14:4419,69037,758,09916,308,0001,019,0002,289,664
6May 18, 2024 14:4419,71041,021,29116,325,0001,020,0002,310,144
7May 18, 2024 14:4420,32646,349,48016,894,000993,0002,310,144
8May 18, 2024 14:4420,38447,444,94315,945,0001,993,0002,289,664
9May 18, 2024 14:4420,43642,056,75716,985,000999,0002,297,856
10May 18, 2024 14:4421,57384,442,56218,984,27302,277,376
11May 18, 2024 14:4421,61279,773,32519,018,52402,285,568
12May 18, 2024 14:4422,17487,742,36419,513,24902,273,280