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 5, 2024 10:53Ivan BessonovIvan BessonovScore: 44,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 10:5344,55559,727,73937,198,0002,010,0002,383,872
2May 5, 2024 10:5344,64160,721,22737,270,0002,014,0002,289,664
3May 5, 2024 10:5344,66965,324,64837,294,0002,015,0002,289,664
4May 5, 2024 10:5344,71066,527,85538,337,0001,008,0002,289,664
5May 5, 2024 10:5344,75872,076,59638,378,0001,009,0002,289,664
6May 5, 2024 10:5344,80366,217,21139,427,00002,289,664
7May 5, 2024 10:5344,90060,132,16638,499,0001,013,0002,273,280
8May 5, 2024 10:5344,91564,915,46639,525,00002,289,664
9May 5, 2024 10:5344,98563,899,90938,572,0001,015,0002,289,664
10May 5, 2024 10:5345,000104,013,46739,599,60402,256,896
11May 5, 2024 10:5345,165101,823,63439,745,45402,260,992
12May 5, 2024 10:5345,18496,014,33139,762,31302,260,992