Prime number generating device, prime number generating method, and computer readable storage medium
First Claim
1. A prime number generating device comprising:
- a computation unit adapted to performing at least addition and division on data of a predetermined number of bits or less;
a prime number candidate data generating unit that generates prime number candidate data expressing a prime number candidate with a larger number of bits than the predetermined number of bits;
a partitioned prime number candidate data generating unit that generates a plurality of partitioned prime number candidate data elements by partitioning the prime number candidate data generated by the prime number candidate data generating unit to give data that is of the predetermined number of bits or less;
a determination data generating unit that generates determination data for determining whether or not the prime number candidate expressed by the prime number candidate data is a composite number, by using the computation unit to add together the respective plurality of partitioned prime number candidate data elements generated by the partitioned prime number candidate data generating unit;
a prime number testing unit that performs primality testing on the prime number candidate data, in cases in which it is determined for at least one prime number that the prime number candidate is not a multiple of the at least one prime number, by the computation unit dividing the at least one prime number into the determination data generated by the determination data generating unit; and
an output unit that outputs the prime number candidate data as a prime number when the prime number candidate is determined to be a prime number by the prime number testing unit.
1 Assignment
0 Petitions
Accused Products
Abstract
A prime number generating device is provided that includes a computation unit capable of performing at least addition and division on data of a predetermined number of bits or less; a prime number candidate data generating unit that generates prime number candidate data with a larger number of bits than the predetermined number of bits; a partitioned prime number candidate data generating unit that generates a plurality of partitioned prime number candidate data elements by partitioning the prime number candidate data; and a determination data generating unit that generates determination data for determining whether or not the prime number candidate expressed by the prime number candidate data is a composite number by using the computation unit to add together the respective plurality of partitioned prime number candidate data elements.
-
Citations
6 Claims
-
1. A prime number generating device comprising:
-
a computation unit adapted to performing at least addition and division on data of a predetermined number of bits or less; a prime number candidate data generating unit that generates prime number candidate data expressing a prime number candidate with a larger number of bits than the predetermined number of bits; a partitioned prime number candidate data generating unit that generates a plurality of partitioned prime number candidate data elements by partitioning the prime number candidate data generated by the prime number candidate data generating unit to give data that is of the predetermined number of bits or less; a determination data generating unit that generates determination data for determining whether or not the prime number candidate expressed by the prime number candidate data is a composite number, by using the computation unit to add together the respective plurality of partitioned prime number candidate data elements generated by the partitioned prime number candidate data generating unit; a prime number testing unit that performs primality testing on the prime number candidate data, in cases in which it is determined for at least one prime number that the prime number candidate is not a multiple of the at least one prime number, by the computation unit dividing the at least one prime number into the determination data generated by the determination data generating unit; and an output unit that outputs the prime number candidate data as a prime number when the prime number candidate is determined to be a prime number by the prime number testing unit. - View Dependent Claims (2)
-
-
3. A prime number generating method in a prime number generating device comprising a computation unit adapted to performing at least addition and division on data of a predetermined number of bits or less, the prime number generating method comprising:
-
generating prime number candidate data expressing a prime number candidate with a larger number of bits than the predetermined number of bits; generating a plurality of partitioned prime number candidate data elements by partitioning the prime number candidate data to give data that is of the predetermined number of bits or less; generating determination data for determining whether or not the prime number candidate expressed by the prime number candidate data is a composite number by the computation unit adding together the respective plurality of partitioned prime number candidate data elements; performing primality testing on the prime number candidate data, in cases in which it is determined for at least one prime number that the prime number candidate is not a multiple of the at least one prime number, by the computation unit dividing the at least one prime number into the determination data; and outputting the prime number candidate data as a prime number when the prime number candidate is determined to be a prime number. - View Dependent Claims (4)
-
-
5. A non-transitory computer readable storage medium storing a program for executing prime number generation processing in a prime number generating device comprising a computation unit capable of performing at least addition and division on data of a predetermined number of bits or less, the prime number generating method comprising:
-
generating prime number candidate data expressing a prime number candidate with a larger number of bits than the predetermined number of bits; generating a plurality of partitioned prime number candidate data elements by partitioning the prime number candidate data to give data that is of the predetermined number of bits or less; generating determination data for determining whether or not the prime number candidate expressed by the prime number candidate data is a composite number by the computation unit adding together the respective plurality of partitioned prime number candidate data elements; performing primality testing on the prime number candidate data, in cases in which it is determined for at least one prime number that the prime number candidate is not a composite number having the at least one prime number as a factor, by the computation unit dividing the at least one prime number into the determination data; and outputting the prime number candidate data as a prime number when the prime number candidate is determined to be a prime number. - View Dependent Claims (6)
-
Specification