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 11:18Ivan BessonovIvan BessonovScore: 23,333Success
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 11:1823,21343,402,73219,406,0001,021,0002,289,664
2May 17, 2024 11:1823,26743,792,63119,452,0001,023,0002,519,040
3May 17, 2024 11:1823,26948,460,40219,454,0001,023,0002,269,184
4May 17, 2024 11:1823,30341,445,83919,482,0001,025,0002,289,664
5May 17, 2024 11:1823,31043,706,76920,513,00002,269,184
6May 17, 2024 11:1823,32051,494,27619,496,0001,026,0002,289,664
7May 17, 2024 11:1823,33348,711,19819,507,0001,026,0002,269,184
8May 17, 2024 11:1823,39043,016,43919,554,0001,029,0002,289,664
9May 17, 2024 11:1823,53049,576,06519,671,0001,035,0002,289,664
10May 17, 2024 11:1823,75077,323,46120,900,33402,252,800
11May 17, 2024 11:1823,807101,778,05720,950,09002,248,704
12May 17, 2024 11:1823,81082,060,98120,953,11302,256,896