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 19:23Ivan BessonovIvan BessonovScore: 31,161Success
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 19:2327,89086,836,74324,543,13402,256,896
2May 16, 2024 19:2327,99272,982,09724,632,52402,379,776
3May 16, 2024 19:2328,078110,714,30324,708,99902,265,088
4May 16, 2024 19:2331,06652,812,08426,326,0001,012,0002,273,280
5May 16, 2024 19:2331,09547,224,31626,351,0001,013,0002,281,472
6May 16, 2024 19:2331,09753,294,30226,352,0001,013,0002,289,664
7May 16, 2024 19:2331,16156,026,68226,407,0001,015,0002,273,280
8May 16, 2024 19:2331,22347,735,42027,476,00002,265,088
9May 16, 2024 19:2331,22449,170,53226,460,0001,017,0002,277,376
10May 16, 2024 19:2331,28249,738,48526,509,0001,019,0002,273,280
11May 16, 2024 19:2331,31451,637,75326,536,0001,020,0002,281,472
12May 16, 2024 19:2331,42349,449,93726,628,0001,024,0002,273,280