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 21, 2024 13:38Ivan BessonovIvan BessonovScore: 15,811Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 13:3815,61642,353,26612,685,0001,057,0002,342,912
2May 21, 2024 13:3815,76442,864,98311,891,0001,981,0002,338,816
3May 21, 2024 13:3815,80031,142,50711,918,0001,986,0002,351,104
4May 21, 2024 13:3815,80631,152,77212,916,000993,0002,289,664
5May 21, 2024 13:3815,80930,869,03411,925,0001,987,0002,289,664
6May 21, 2024 13:3815,81039,597,98111,926,0001,987,0002,289,664
7May 21, 2024 13:3815,81131,416,59311,927,0001,987,0002,289,664
8May 21, 2024 13:3816,04365,616,80514,117,70002,207,744
9May 21, 2024 13:3816,14466,218,50414,206,85602,326,528
10May 21, 2024 13:3816,27734,854,21812,278,0002,046,0002,351,104
11May 21, 2024 13:3816,34495,291,70214,382,44602,199,552
12May 21, 2024 13:3816,41333,748,56713,412,0001,031,0002,289,664