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 07:49Ivan BessonovIvan BessonovScore: 24,443Success
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 07:4924,29342,541,11820,360,0001,018,0002,289,664
2May 17, 2024 07:4924,35049,447,42720,408,0001,020,0002,269,184
3May 17, 2024 07:4924,36141,817,52120,418,0001,020,0002,289,664
4May 17, 2024 07:4924,36549,453,98620,420,0001,021,0002,289,664
5May 17, 2024 07:4924,40056,443,41120,450,0001,022,0002,273,280
6May 17, 2024 07:4924,40643,829,92520,455,0001,022,0002,289,664
7May 17, 2024 07:4924,44346,805,91220,486,0001,024,0002,289,664
8May 17, 2024 07:4924,44444,896,18121,511,00002,273,280
9May 17, 2024 07:4924,55645,309,00420,580,0001,029,0002,367,488
10May 17, 2024 07:4925,85693,868,80322,752,98502,248,704
11May 17, 2024 07:4926,03286,132,99322,907,78002,387,968
12May 17, 2024 07:4926,08570,500,84822,955,02002,383,872