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 19, 2024 07:31Ivan BessonovIvan BessonovScore: 16,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:3116,44133,327,45513,435,0001,033,0002,289,664
2May 19, 2024 07:3116,45930,608,76113,450,0001,034,0002,289,664
3May 19, 2024 07:3116,46336,733,93213,453,0001,034,0002,289,664
4May 19, 2024 07:3116,47235,885,57413,460,0001,035,0002,289,664
5May 19, 2024 07:3116,50134,869,33113,484,0001,037,0002,289,664
6May 19, 2024 07:3116,54934,333,26913,523,0001,040,0002,289,664
7May 19, 2024 07:3116,74789,512,80514,737,35202,195,456
8May 19, 2024 07:3117,09340,714,50513,037,0002,005,0002,347,008
9May 19, 2024 07:3117,20837,257,05913,124,0002,019,0002,334,720
10May 19, 2024 07:3117,40794,337,39915,318,07502,191,360
11May 19, 2024 07:3117,41678,015,24415,326,30802,187,264
12May 19, 2024 07:3118,41846,903,69115,195,0001,013,0002,338,816