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 17, 2024 08:36Ivan BessonovIvan BessonovScore: 23,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:3623,08243,775,25318,281,0002,031,0002,289,664
2May 17, 2024 08:3623,19743,903,04119,393,0001,020,0002,289,664
3May 17, 2024 08:3623,20948,308,81820,424,00002,277,376
4May 17, 2024 08:3623,22441,784,66219,416,0001,021,0002,273,280
5May 17, 2024 08:3623,24344,478,17819,432,0001,022,0002,269,184
6May 17, 2024 08:3623,27045,882,03319,455,0001,023,0002,289,664
7May 17, 2024 08:3623,27446,385,88519,457,0001,024,0002,289,664
8May 17, 2024 08:3623,35643,632,43720,553,00002,277,376
9May 17, 2024 08:3623,44248,392,52120,629,00002,289,664
10May 17, 2024 08:3623,67297,827,60620,831,40302,256,896
11May 17, 2024 08:3623,72885,015,90620,881,02202,256,896
12May 17, 2024 08:3623,76885,634,87120,915,75002,260,992