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 20:17Ivan BessonovIvan BessonovScore: 26,032Success
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 20:1725,97550,596,21520,871,0001,987,0002,277,376
2May 16, 2024 20:1726,00045,531,60320,891,0001,989,0002,289,664
3May 16, 2024 20:1726,00152,367,49120,892,0001,989,0002,289,664
4May 16, 2024 20:1726,01350,023,06220,901,0001,990,0002,289,664
5May 16, 2024 20:1726,01550,021,10020,903,0001,990,0002,289,664
6May 16, 2024 20:1726,02048,754,86820,907,0001,991,0002,289,664
7May 16, 2024 20:1726,03250,980,12420,916,0001,992,0002,289,664
8May 16, 2024 20:1726,09148,276,57821,962,000998,0002,273,280
9May 16, 2024 20:1726,13052,197,14720,995,0001,999,0002,289,664
10May 16, 2024 20:1727,85496,583,47424,511,26502,260,992
11May 16, 2024 20:1727,86894,625,17024,523,63702,260,992
12May 16, 2024 20:1727,963107,188,62824,607,49602,256,896