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 14:06Ivan BessonovIvan BessonovScore: 15,549Success
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 14:0615,28832,277,44012,419,0001,034,0002,289,664
2May 21, 2024 14:0615,29730,799,25712,426,0001,035,0002,351,104
3May 21, 2024 14:0615,33530,318,61612,457,0001,038,0002,351,104
4May 21, 2024 14:0615,34730,935,21212,467,0001,038,0002,347,008
5May 21, 2024 14:0615,34734,565,50712,467,0001,038,0002,289,664
6May 21, 2024 14:0615,37031,018,27612,486,0001,040,0002,342,912
7May 21, 2024 14:0815,52563,253,96513,662,06802,199,552
8May 21, 2024 14:0815,54991,563,18913,683,16002,207,744
9May 21, 2024 14:0615,59664,735,84113,724,74502,191,360
10May 21, 2024 14:0815,59689,630,55013,724,89902,199,552
11May 21, 2024 14:0615,70284,507,76213,817,94302,187,264
12May 21, 2024 14:0615,78682,165,02213,891,39402,199,552
13May 21, 2024 14:0615,86935,430,51311,970,0001,995,0002,289,664
14May 21, 2024 14:0615,94132,960,38012,024,0002,004,0002,338,816
15May 21, 2024 14:0615,99740,572,96312,066,0002,011,0002,355,200