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 21:04Ivan BessonovIvan BessonovScore: 30,786Success
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 21:0427,41987,804,63824,129,05302,265,088
2May 16, 2024 21:0427,48384,980,05724,185,04602,265,088
3May 16, 2024 21:0427,50693,181,74424,205,11302,256,896
4May 16, 2024 21:0430,66351,886,90124,985,0001,998,0002,273,280
5May 16, 2024 21:0430,73848,897,81525,046,0002,003,0002,277,376
6May 16, 2024 21:0430,76353,076,02625,066,0002,005,0002,289,664
7May 16, 2024 21:0430,78653,679,93225,086,0002,006,0002,289,664
8May 16, 2024 21:0430,80753,870,54525,102,0002,008,0002,289,664
9May 16, 2024 21:0430,82051,749,90625,113,0002,009,0002,289,664
10May 16, 2024 21:0430,87854,707,94825,161,0002,012,0002,289,664
11May 16, 2024 21:0430,89150,155,60225,171,0002,013,0002,277,376
12May 16, 2024 21:0430,95248,723,43226,230,0001,008,0002,269,184