To prove whether n is prime, we only need to judge whether n can be 2
VB method
Dim n As Double
n = Text1.Text
a = 2
m = Int(Sqr(n))
s = 0
While a
RELATED INFORMATIONS
- 1. Given that the distance between two points a (1,63), B (0,53) and line L is equal to a, and such line l can be made into four, then the value range of a is______ .
- 2. Use the number 123456 to form the number of four digits without repetition and the odd number is not adjacent
- 3. Write function fun, the function function is to find less than or equal to Lim all prime numbers and put in the AA array, the function returns the number of prime numbers. The statements given in function fun are for reference only Ask how to do it
- 4. Given that C is a real number and the opposite number of a root of equation x2-3x + C = 0 is a root of equation x2 + 3x-c = 0, find the solution of equation x2 + 3x-c = 0 and the value of C
- 5. How many three digit numbers can be made up of 1,2,3,4,5,6,7? How to do it with permutation
- 6. Input integer m in the main function, store all prime numbers greater than 1 and less than integer m in the index group of XX Institute in function fun, and pass the number of prime numbers back to the main function. For example, input 25, then output 23571113191923; Requirements: the input of integer m and the output of prime number and prime number are completed in main function; The fun function stores all prime numbers greater than 1 and less than integer m into the index group of XX Institute, and transfers the number of prime numbers back to the main function through K;, The FUN function is called in the MAIN function.
- 7. It is proved that: - 10x2 + 7x-4 is less than 0
- 8. How many groups of 6-digit numbers can you combine with 0-9? What are these numbers?
- 9. Write a function to determine the prime number, input an integer in the main function, and output the information whether it is a prime number or not solve
- 10. It is proved that: - 10x2 + 7x-4 is less than 0
- 11. How many odd three digit numbers are there, which are composed of the number 123456
- 12. The equation of the line with a distance of 55 from the line 2x + y + 1 = 0 is () A. 2X + y = 0b. 2x + Y-2 = 0C. 2x + y = 0 or 2x + Y-2 = 0d. 2x + y = 0 or 2x + y + 2 = 0
- 13. If a and B are not divisible by Prime n + 1, can a ^ N-B ^ n be divisible by N + 1? Can give a proof; can't give a reason,
- 14. Use 123456 six digits to form six digits without repeated digits (1) how many are adjacent to 135 (2) how many are odd digits and even digits alternating?
- 15. Let F 1 and F 2 be the left and right focal points of hyperbola x ^ 2 / 4-y ^ 2 = I respectively, and point P satisfy ∠ f 1pf 2 = 90 ° on the hyperbola, then the area of △ f 1pf 2 is
- 16. Why is there a number n? To judge whether it is prime, we only need to check whether n can be divided by the number between 2 and the root n
- 17. There are 123456 six numbers in total. Every four numbers make up a group of numbers. At the same time, 6 can't be in thousand digits and 1 can't be in single digits. How many combinations are there? Except that 6 can't be in the thousand digits, all other digits are OK, just like 1. Hope to give the method
- 18. If 2x-5y = 0 and X ≠ 0, then the value of 6x − 5y6x + 5Y is______ .
- 19. On the problem that C, a, B, C ∈ n *, C cannot be divisible by the square of prime number under the root sign of a + B. find a + B + C Eight spheres with radius of 100 are placed on a horizontal plane. Each sphere is tangent to two adjacent spheres, and their center is the eight vertices of a regular octagon. Now put the ninth sphere on this horizontal plane, so that it is tangent to the eight placed spheres. Let C, a, B, C ∈ n *, C be not divisible by the square of prime. Find a + B + C
- 20. How many permutations are there in 123456