Problem statement: You are given a number N, please find an array of length N so that, no two elements divide each other, and the total sum is minimized.
Example: N = 2: arr = {1} N = 3: arr = {2, 3}
Caveat: it isn't the first N primes.
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 144 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 134 |
| 10 | AksLolCoding | 132 |
Need help solving a hard problem
Problem statement: You are given a number N, please find an array of length N so that, no two elements divide each other, and the total sum is minimized.
Example: N = 2: arr = {1} N = 3: arr = {2, 3}
Caveat: it isn't the first N primes.
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en2 |
|
crowned_85 | 2025-04-11 19:07:29 | 12 | ||
| en1 |
|
crowned_85 | 2025-04-11 15:50:58 | 276 | Initial revision (published) |
| Название |
|---|


