Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize Prime number replacement by java

Shulou Source: shulou.com Published: 2022-06-01 01:03:22 09月30日 Update

This article mainly introduces java how to achieve prime number replacement, the article introduces in great detail, has a certain reference value, interested friends must read it!

Replace the first number of two-digit * 3 with any number, and six of the nine possible values are primes: 13, 23, 43, 53, 73, and 83.

Replace the third and fourth digits of the five-digit 56-digit number with the same arbitrary number, and you get the smallest example that seven of the ten possible values are primes: 56003, 56113, 56333, 56443, 56663, 56773 and 56993. 56003 is not only the smallest member of this family, but also the smallest prime number that satisfies this property.

By replacing some numbers (not necessarily adjacent) with the same arbitrary numbers, eight primes can sometimes be obtained, and the minimum prime number satisfying this property can be obtained.

The above is all the contents of the article "how to replace prime numbers in java". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Numbers primes minimum same content properties articles families values digits examples interests guys partners members more knowledge industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Microsoft Huawei Docker Shulou Technology