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 listApr 30, 2024 21:36gchebanovgchebanovScore: 39,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 21:3639,66063,913,45732,907,0001,994,0002,449,408
2Apr 30, 2024 21:3639,66759,124,71434,907,00002,285,568
3Apr 30, 2024 21:3639,70059,217,98932,940,0001,996,0002,285,568
4Apr 30, 2024 21:3639,74259,232,76432,975,0001,998,0002,285,568
5Apr 30, 2024 21:3639,78455,977,59133,010,0002,000,0002,453,504
6Apr 30, 2024 21:3639,80262,361,31033,025,0002,001,0002,449,408
7Apr 30, 2024 21:3639,81357,651,30633,033,0002,002,0002,285,568
8Apr 30, 2024 21:3639,81556,741,02933,035,0002,002,0002,285,568
9Apr 30, 2024 21:3639,84362,277,97633,059,0002,003,0002,441,216
10Apr 30, 2024 21:3641,12791,790,86636,191,73202,306,048
11Apr 30, 2024 21:3641,31099,494,54936,352,78502,297,856
12Apr 30, 2024 21:3641,42799,851,07936,455,48002,293,760