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:17Ivan BessonovIvan BessonovScore: 23,345Success
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:1723,23544,157,75320,447,00002,289,664
2May 17, 2024 11:1723,27746,409,33519,460,0001,024,0002,289,664
3May 17, 2024 11:1723,27750,985,91619,460,0001,024,0002,269,184
4May 17, 2024 11:1723,31145,602,43219,489,0001,025,0002,289,664
5May 17, 2024 11:1723,31348,803,80519,490,0001,025,0002,523,136
6May 17, 2024 11:1723,34543,841,65220,544,00002,277,376
7May 17, 2024 11:1723,34544,439,53319,517,0001,027,0002,523,136
8May 17, 2024 11:1723,36446,276,76520,560,00002,269,184
9May 17, 2024 11:1723,41046,956,33019,571,0001,030,0002,289,664
10May 17, 2024 11:1723,81084,715,24220,952,82702,248,704
11May 17, 2024 11:1723,848102,375,42620,986,29102,252,800
12May 17, 2024 11:1723,95087,851,34321,075,72502,387,968