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 16, 2024 21:14Ivan BessonovIvan BessonovScore: 30,594Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:1427,32495,224,38724,045,10702,256,896
2May 16, 2024 21:1427,36094,564,61624,076,61802,260,992
3May 16, 2024 21:1427,36486,581,69424,080,28302,256,896
4May 16, 2024 21:1430,54552,543,15124,889,0001,991,0002,289,664
5May 16, 2024 21:1430,57351,882,27625,908,000996,0002,289,664
6May 16, 2024 21:1430,58552,641,28625,919,000996,0002,289,664
7May 16, 2024 21:1430,59452,876,62624,929,0001,994,0002,277,376
8May 16, 2024 21:1430,59951,732,27324,933,0001,994,0002,273,280
9May 16, 2024 21:1430,60356,321,29124,937,0001,994,0002,289,664
10May 16, 2024 21:1430,63150,110,57425,957,000998,0002,269,184
11May 16, 2024 21:1430,67054,320,63524,991,0001,999,0002,281,472
12May 16, 2024 21:1430,72848,267,11925,038,0002,003,0002,269,184