! Divisible

Revision en2, by YosiefAhmed, 2023-03-20 05:20:51

Given array with n elements unique values, q query’s two type:

1: change the value of the element to other value which unique(not appear in array).

2: find the minimum value > 1 which not divisible by any other value in arrays

Can any one help me to solve this problem ?

Tags math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English YosiefAhmed 2023-03-20 05:20:51 11
en1 English YosiefAhmed 2023-03-20 05:20:19 288 Initial revision (published)