This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Tìm số nguyên tố cuối cùng

10cth1-2 August 1, 2011 0

C1:

int sontcuoi=-1;
  for (int i=0;i<n;i++)
    if ktnt(a[i])==1)
      sontcuoi=a[i];
  return sontcuoi;

C2:

for (int i=0;i<n;i++)
  if ktnt(a[n-i])==1)
    return a[i];
  return -1;

Last modified on November 20th, 2023 at 3:34 am

Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.