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 20:52Ivan BessonovIvan BessonovScore: 29,661Success
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 20:5229,55649,139,59125,009,0001,000,0002,289,664
2May 16, 2024 20:5229,58354,469,96124,031,0002,002,0002,289,664
3May 16, 2024 20:5229,59752,348,36024,042,0002,003,0002,289,664
4May 16, 2024 20:5229,61150,475,78424,054,0002,004,0002,289,664
5May 16, 2024 20:5229,63848,662,42724,075,0002,006,0002,289,664
6May 16, 2024 20:5229,63947,842,38924,076,0002,006,0002,400,256
7May 16, 2024 20:5229,66149,718,28324,095,0002,007,0002,523,136
8May 16, 2024 20:5229,71353,094,86624,136,0002,011,0002,523,136
9May 16, 2024 20:5229,76349,492,51325,184,0001,007,0002,273,280
10May 16, 2024 20:5240,913118,069,44036,003,32002,252,800
11May 16, 2024 20:5241,044114,894,06236,118,36602,269,184
12May 16, 2024 20:5241,122103,962,92136,187,38702,260,992