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 16, 2024 21:11Ivan BessonovIvan BessonovScore: 30,698Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:1127,79994,169,04524,463,42902,265,088
2May 16, 2024 21:1127,90087,222,92724,551,95802,256,896
3May 16, 2024 21:1127,97592,716,13524,617,66802,260,992
4May 16, 2024 21:1130,57550,435,13325,910,000996,0002,289,664
5May 16, 2024 21:1130,62549,980,34424,954,0001,996,0002,289,664
6May 16, 2024 21:1130,67349,663,43625,993,000999,0002,289,664
7May 16, 2024 21:1130,69851,811,22425,013,0002,001,0002,277,376
8May 16, 2024 21:1130,70957,182,91026,024,0001,000,0002,277,376
9May 16, 2024 21:1130,72250,144,86925,033,0002,002,0002,289,664
10May 16, 2024 21:1130,84155,952,60525,130,0002,010,0002,273,280
11May 16, 2024 21:1130,84551,297,21126,139,0001,005,0002,289,664
12May 16, 2024 21:1130,84849,907,13025,136,0002,010,0002,289,664