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 08:57Ivan BessonovIvan BessonovScore: 46,073Success
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 08:5745,89266,236,57840,385,00002,289,664
2May 5, 2024 08:5745,90563,237,87939,387,0001,009,0002,273,280
3May 5, 2024 08:5745,96961,304,45140,453,00002,269,184
4May 5, 2024 08:5745,97766,757,60439,449,0001,011,0002,289,664
5May 5, 2024 08:5746,01466,442,09840,492,00002,269,184
6May 5, 2024 08:5746,03861,509,27539,501,0001,012,0002,273,280
7May 5, 2024 08:5746,07367,373,39140,544,00002,289,664
8May 5, 2024 08:5746,10663,688,05539,559,0001,014,0002,523,136
9May 5, 2024 08:5746,11862,860,84539,570,0001,014,0002,289,664
10May 5, 2024 08:5746,152116,512,71040,613,85602,265,088
11May 5, 2024 08:5746,172104,439,97540,631,40102,256,896
12May 5, 2024 08:5746,18196,938,93740,639,41402,260,992