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 21, 2024 13:38Ivan BessonovIvan BessonovScore: 16,115Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 13:3815,77287,280,54913,879,30302,203,648
2May 21, 2024 13:3815,81131,611,81811,927,0001,987,0002,289,664
3May 21, 2024 13:3815,82529,706,42611,937,0001,989,0002,355,200
4May 21, 2024 13:3815,85829,806,38411,962,0001,993,0002,289,664
5May 21, 2024 13:3815,87228,669,84311,972,0001,995,0002,289,664
6May 21, 2024 13:3815,92684,489,39114,014,55602,195,456
7May 21, 2024 13:3816,11595,589,44414,181,25202,199,552
8May 21, 2024 13:3816,30034,963,96912,295,0002,049,0002,347,008
9May 21, 2024 13:3816,47630,850,09514,499,00002,342,912
10May 21, 2024 13:3816,55039,295,19813,524,0001,040,0002,289,664
11May 21, 2024 13:3816,56833,477,33813,539,0001,041,0002,289,664
12May 21, 2024 13:3816,57532,607,57013,545,0001,041,0002,285,568